/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    background: linear-gradient(45deg, #218838, #1ea085);
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.6);
    background: linear-gradient(45deg, #138496, #117a8b);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: white;
    min-height: calc(100vh - 70px);
}

/* Login Section */
.login-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.btn-login {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    margin-bottom: 15px;
    color: #666;
}

/* Register Section */
.register-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.register-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.register-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.register-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.btn-register {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.register-footer p {
    margin-bottom: 15px;
    color: #666;
}

/* Admin Section */
.admin-section {
    padding: 100px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

.admin-header {
    text-align: center;
    margin-bottom: 60px;
}

.admin-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.admin-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: #667eea;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-weight: 500;
}

.responses-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.responses-table-container {
    overflow-x: auto;
}

.responses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.responses-table th,
.responses-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.responses-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.responses-table td {
    font-size: 0.95rem;
}

.responses-table tr:hover {
    background: #f8f9fa;
}

.email-link,
.phone-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover,
.phone-link:hover {
    text-decoration: underline;
}

.no-data {
    color: #999;
    font-style: italic;
}

.message-cell {
    max-width: 300px;
}

.message-preview {
    margin-bottom: 10px;
    line-height: 1.4;
}

.message-more {
    color: #999;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Practice Portal Styles */
.practice-section {
    padding: 100px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

.practice-header {
    text-align: center;
    margin-bottom: 60px;
}

.practice-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.practice-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portal-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.portal-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.portal-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.portal-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.portal-card .btn {
    width: 100%;
    justify-content: center;
}

/* Form Styles for Select */
.form-input[type="select"],
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    font-size: 0.95rem;
    color: #555;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.btn-action {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin: 0 2px;
}

.btn-edit {
    background: #28a745;
    color: white;
}

.btn-edit:hover {
    background: #218838;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Form Layout */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* Calendar Styles */
.calendar-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.calendar-sidebar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.calendar-main {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.week-view {
    display: grid;
    grid-template-columns: repeat(7, minmax(35px, 1fr));
    gap: 0px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.day-column {
    background: white;
    padding: 2px;
    min-height: 60px;
    min-width: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.day-column:hover {
    background: #f8f9fa;
}

.day-column.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.day-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
    text-align: center;
    padding: 1px;
    background: #f8f9fa;
    border-radius: 2px;
    font-size: 0.6rem;
    width: 100%;
}

.today {
    background: #fff3cd !important;
    border-color: #ffc107;
}

.today.selected {
    background: #e3f2fd !important;
    border-color: #2196f3;
}

.total-time {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 0.6rem;
    width: 100%;
}

.timesheet-entry {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timesheet-entry:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.entry-client {
    font-weight: 600;
    margin-bottom: 2px;
}

.entry-task {
    font-size: 0.8rem;
    opacity: 0.9;
}

.entry-time {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Mobile Table Optimizations */
@media (max-width: 768px) {
    .table-container {
        padding: 10px;
        border-radius: 10px;
        margin: 0 -10px;
    }
    
    .data-table {
        font-size: 0.85rem;
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    .data-table th {
        font-size: 0.75rem;
        position: sticky;
        top: 0;
        background: #f8f9fa;
        z-index: 10;
    }
    
    .btn-action {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin: 1px;
    }
    
    .usage-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    /* Form responses specific mobile fixes */
    .responses-table th:nth-child(1),
    .responses-table td:nth-child(1) {
        min-width: 50px;
        max-width: 60px;
    }
    
    .responses-table th:nth-child(2),
    .responses-table td:nth-child(2) {
        min-width: 100px;
        max-width: 120px;
    }
    
    .responses-table th:nth-child(3),
    .responses-table td:nth-child(3) {
        min-width: 150px;
        max-width: 180px;
    }
    
    .responses-table th:nth-child(4),
    .responses-table td:nth-child(4) {
        min-width: 100px;
        max-width: 120px;
    }
    
    .responses-table th:nth-child(5),
    .responses-table td:nth-child(5) {
        min-width: 200px;
        max-width: 250px;
    }
    
    .responses-table th:nth-child(6),
    .responses-table td:nth-child(6) {
        min-width: 100px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .table-container {
        padding: 5px;
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .data-table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 4px;
    }
    
    .data-table th {
        font-size: 0.7rem;
    }
    
    .btn-action {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .usage-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
}

/* Usage Badge */
.usage-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Order Badge */
.order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 32px;
    height: 32px;
    border: 2px solid #e1bee7;
}

/* Week View Section */
.week-view-section {
    margin-top: 30px;
}

.week-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.week-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.week-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Character Count */
.char-count {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Day Entries */
.day-entries {
    min-height: 150px;
}


/* Selected Day Section */
.selected-day-section {
    margin-top: 30px;
}

.selected-day-entries {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
}

.entries-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.entries-table th:nth-child(1) {
    width: 33.75%;
}

.entries-table th:nth-child(2) {
    width: 56.25%;
}

.entries-table th:nth-child(3) {
    width: 10%;
}

.entries-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    vertical-align: top;
}

.entries-table tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.entries-table tr:hover {
    background: #f8f9fa;
}

.entries-table tr.selected {
    background: #d4edda !important;
    border-left: 3px solid #28a745;
}

.entries-table tr:last-child td {
    border-bottom: none;
}

.entry-client {
    font-weight: 600;
    color: #333;
}

.entry-description {
    color: #666;
    line-height: 1.4;
}

.entry-time {
    color: #667eea;
    font-weight: 600;
    text-align: center;
    font-family: monospace;
}

.no-entries {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Mobile Form Optimizations */
@media (max-width: 768px) {
    .form-input,
    .form-textarea,
    select.form-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .btn-action {
        min-height: 36px;
        min-width: 36px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .form-input,
    .form-textarea,
    select.form-input {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .form-textarea {
        min-height: 80px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .btn-action {
        min-height: 32px;
        min-width: 32px;
        padding: 4px;
    }
    
    .alert {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .empty-state {
        padding: 30px 15px;
    }
    
    .empty-icon {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.2rem;
    }
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
    }
    
    .calendar-sidebar {
        order: 2;
    }
    
    .calendar-main {
        order: 1;
    }
    
    /* Week view mobile - keep all 7 days on one line */
    .week-view {
        grid-template-columns: repeat(7, minmax(30px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .day-column {
        padding: 2px;
        min-height: 60px;
        min-width: 40px;
        flex-shrink: 0;
    }
    
    .day-header {
        padding: 1px;
        font-size: 0.6rem;
    }
    
    .total-time {
        font-size: 0.6rem;
    }
    
    .entries-table th,
    .entries-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .entries-table th:nth-child(1),
    .entries-table td:nth-child(1) {
        width: 30%;
    }
    
    .entries-table th:nth-child(2),
    .entries-table td:nth-child(2) {
        width: 55%;
    }
    
    .entries-table th:nth-child(3),
    .entries-table td:nth-child(3) {
        width: 15%;
    }
}

@media (max-width: 480px) {
    .week-view {
        grid-template-columns: repeat(7, minmax(25px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .day-column {
        padding: 1px;
        min-height: 50px;
        min-width: 35px;
        flex-shrink: 0;
    }
    
    .day-header {
        padding: 1px;
        font-size: 0.55rem;
    }
    
    .total-time {
        font-size: 0.55rem;
    }
    
    .entries-table th,
    .entries-table td {
        padding: 6px;
        font-size: 0.75rem;
    }
    
    .entries-table th:nth-child(1),
    .entries-table td:nth-child(1) {
        width: 26.25%;
    }
    
    .entries-table th:nth-child(2),
    .entries-table td:nth-child(2) {
        width: 58.75%;
    }
    
    .entries-table th:nth-child(3),
    .entries-table td:nth-child(3) {
        width: 15%;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .nav-container {
        flex-wrap: wrap;
        min-height: 60px;
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .nav-logo i {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        height: 60px;
        padding: 0 10px;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .nav-menu {
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: flex-end;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .nav-link i {
        display: none; /* Hide icons on very small screens */
    }
}

/* Mobile Modal Improvements */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    /* Reduce card body padding by half on mobile */
    .card-body {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Further reduce card body padding on extra small mobile */
    .card-body {
        padding: 0.5rem;
    }
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: #667eea;
    width: 16px;
}

.form-input,
.form-textarea {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    padding: 18px 40px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Practice Portal Mobile */
    .practice-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .practice-section .portal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portal-card {
        padding: 30px 20px;
    }
    
    /* Page Headers Mobile */
    .page-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Form Layout Mobile */
    .form-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Calendar Mobile */
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-sidebar {
        order: 2;
    }
    
    .calendar-main {
        order: 1;
    }
    
    .week-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
    
    .day-column {
        padding: 10px;
        min-height: 120px;
    }
    
    .day-header {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .timesheet-entry {
        padding: 6px 8px;
        font-size: 0.75rem;
        margin: 3px 0;
    }
    
    .entry-client {
        font-size: 0.8rem;
    }
    
    .entry-task {
        font-size: 0.7rem;
    }
    
    .entry-time {
        font-size: 0.7rem;
    }
}

/* About Page Layout */
.about-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin: 30px 0;
    align-items: start;
}

.about-content-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-content-box h3 {
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.about-content-box p {
    text-align: left;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.about-content-box p:last-child {
    margin-bottom: 0;
}

.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile layout for About page */
@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-layout > div:first-child {
        order: 1;
    }
    
    .about-layout > div:last-child {
        order: 2;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .practice-title {
        font-size: 2.2rem;
    }
    
    .practice-subtitle {
        font-size: 1rem;
    }
    
    .practice-section .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .portal-card {
        padding: 25px 15px;
    }
    
    .portal-icon {
        font-size: 2.5rem;
    }
    
    .portal-card h3 {
        font-size: 1.3rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .week-view {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    .day-column {
        padding: 8px;
        min-height: 100px;
    }
    
    .day-header {
        padding: 6px;
        font-size: 0.75rem;
    }
    
    .timesheet-entry {
        padding: 4px 6px;
        font-size: 0.7rem;
        margin: 2px 0;
    }
    
    .entry-client {
        font-size: 0.75rem;
    }
    
    .entry-task {
        font-size: 0.65rem;
    }
    
    .entry-time {
        font-size: 0.65rem;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
}

/* Navigation Separator - Wider and Darker Line */
.nav-separator {
    margin: 30px 0;
    padding: 0;
}

.nav-separator hr {
    border: none;
    border-top: 4px solid #333;
    margin: 0;
    width: 100%;
}