/* Kantin Jamalbaq CRM - Modern CSS Styling */

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content h1 i {
    color: #667eea;
}

.header-content p {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #718096;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.version {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.separator {
    color: #cbd5e0;
}

.server-info, .database-status {
    font-weight: 500;
}

.database-status i {
    color: #10b981;
    margin-right: 5px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.upload-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 500px;
    width: 100%;
}

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.upload-card p {
    color: #718096;
    margin-bottom: 30px;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: inline-block;
    padding: 15px 25px;
    background: #f7fafc;
    border: 2px dashed #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-weight: 500;
    width: 100%;
}

.file-input-label:hover {
    background: #667eea;
    color: white;
}

.file-input-label i {
    margin-right: 8px;
}

.upload-btn {
    width: 100%;
    margin-top: 10px;
}

.upload-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.upload-help h4 {
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-help h4 i {
    color: #667eea;
}

.upload-help ol {
    color: #718096;
    padding-left: 20px;
}

.upload-help ol li {
    margin-bottom: 8px;
}

.upload-help code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-size: 13px;
}

.upload-warning {
    background: #fef3cd;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b45309;
}

.upload-warning i {
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    font-size: 1.5rem;
}

.stat-icon.pending {
    background: #f59e0b;
}

.stat-icon.contacted {
    background: #10b981;
}

.stat-icon.progress {
    background: #8b5cf6;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-content p {
    color: #718096;
    font-weight: 500;
}

/* Controls Section */
.controls-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #4a5568;
    text-decoration: none;
    transition: background 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* Table Section */
.table-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.table-container {
    overflow-x: auto;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contacts-table thead {
    background: #667eea;
    color: white;
}

.contacts-table th,
.contacts-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.contacts-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.contacts-table tbody tr {
    transition: background-color 0.3s ease;
}

.contacts-table tbody tr:hover {
    background: #f7fafc;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3cd;
    color: #b45309;
}

.status-contacted {
    background: #d1fae5;
    color: #065f46;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: scale(1.05);
}

.btn-whatsapp:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 50px;
    color: #718096;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px;
    color: #718096;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #4a5568;
}

/* Pagination Section */
.pagination-section {
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pagination-stats {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4a5568;
}

.items-per-page-select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.items-per-page-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    font-size: 14px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: #f7fafc;
    color: #667eea;
}

.pagination-btn:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    margin: 0 10px;
    flex-wrap: wrap;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #a0aec0;
    font-weight: 500;
    pointer-events: none;
}

.pagination-jump {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
}

.jump-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.jump-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #718096;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #e2e8f0;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.contact-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
}

.contact-info h4 {
    margin-bottom: 5px;
    color: #2d3748;
}

.contact-info p {
    color: #718096;
    font-weight: 500;
    font-family: monospace;
}

.message-preview h5 {
    margin-bottom: 10px;
    color: #2d3748;
}

.message-content {
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    white-space: pre-line;
    line-height: 1.6;
    color: #4a5568;
    border-left: 4px solid #667eea;
    max-height: 200px;
    overflow-y: auto;
}

.whatsapp-note {
    margin-top: 15px;
    padding: 10px;
    background: #dcfce7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #166534;
    font-size: 14px;
}

.whatsapp-note i {
    color: #16a34a;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f7fafc;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #10b981;
}

.toast.error i {
    color: #ef4444;
}

.toast.info i {
    color: #3b82f6;
}

.toast.warning i {
    color: #f59e0b;
}

.toast-message {
    flex: 1;
    color: #4a5568;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 2px;
}

.toast-close:hover {
    color: #4a5568;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.install-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.install-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.install-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.install-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.install-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.install-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.install-actions .btn-secondary,
.install-actions .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.install-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.install-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.install-actions .btn-primary {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.install-actions .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced WhatsApp Fallback Modal */
.enhanced-fallback .modal {
    max-width: 420px;
    border-radius: 16px;
}

.enhanced-fallback .modal-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 16px 16px 0 0;
    padding: 20px;
}

.enhanced-fallback .modal-header h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.enhanced-fallback .pwa-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

.enhanced-fallback .pwa-notice i {
    font-size: 1.2rem;
    color: #f39c12;
}

.enhanced-fallback .enhanced-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.enhanced-fallback .fallback-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enhanced-fallback .fallback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.enhanced-fallback .fallback-btn.primary {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.enhanced-fallback .fallback-btn.secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.enhanced-fallback .fallback-btn.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.enhanced-fallback .btn-icon {
    font-size: 1.8rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enhanced-fallback .btn-content {
    flex: 1;
}

.enhanced-fallback .btn-content strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.enhanced-fallback .btn-content small {
    display: block;
    opacity: 0.8;
    font-size: 0.85rem;
}

.enhanced-fallback .contact-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    margin-top: 15px;
}

.enhanced-fallback .detail-row {
    margin-bottom: 10px;
    line-height: 1.4;
}

.enhanced-fallback .detail-row:last-child {
    margin-bottom: 0;
}

.enhanced-fallback .message-preview {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    margin-top: 5px;
    max-height: 80px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    color: #495057;
}

/* PWA Offline Indicators */
.offline-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f59e0b;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1500;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.offline-indicator i {
    font-size: 1.1rem;
}

.offline-indicator.show {
    display: flex;
}

/* PWA Standalone Mode Adjustments */
@media all and (display-mode: standalone) {
    .header {
        padding-top: 40px; /* Account for status bar */
    }
    
    body {
        user-select: none; /* Prevent text selection in app mode */
    }
    
    .pwa-install-banner {
        display: none !important; /* Hide install banner in app */
    }
    
    /* Enhanced WhatsApp modal in PWA */
    .enhanced-fallback .modal {
        border-radius: 20px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    }
    
    .enhanced-fallback .modal-header {
        border-radius: 20px 20px 0 0;
    }
    
    .enhanced-fallback .fallback-btn {
        border-radius: 14px;
        padding: 18px;
    }
    
    .enhanced-fallback .btn-icon {
        font-size: 2rem;
    }
}

/* PWA iOS Safari Adjustments */
@supports (-webkit-touch-callout: none) {
    @media all and (display-mode: standalone) {
        .header {
            padding-top: env(safe-area-inset-top, 20px);
        }
        
        .footer {
            padding-bottom: env(safe-area-inset-bottom, 20px);
        }
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 50px;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    flex-wrap: wrap;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .version-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contacts-table {
        font-size: 14px;
    }
    
    .contacts-table th,
    .contacts-table td {
        padding: 10px 15px;
    }
    
    .modal {
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .upload-card {
        padding: 30px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Pagination mobile styles */
    .pagination-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-numbers {
        margin: 0 5px;
    }
    
    .pagination-jump {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* PWA Install Banner Mobile */
    .install-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .install-info {
        flex-direction: column;
        text-align: center;
    }
    
    .install-actions {
        width: 100%;
        justify-content: center;
    }
    
    .install-actions .btn-secondary,
    .install-actions .btn-primary {
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-bottom: 10px;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .controls-grid {
        gap: 10px;
    }
    
    .toast {
        min-width: 250px;
        margin-right: 10px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .header, .controls-section, .modal-overlay, .toast-container, .footer {
        display: none !important;
    }
    
    .stats-section, .table-section {
        box-shadow: none !important;
        background: white !important;
    }
    
    .contacts-table {
        width: 100% !important;
        font-size: 12px !important;
    }
    
    body {
        background: white !important;
    }
}