/*
Theme Name: Accounting & Tax Services - Meeting Scheduler
Theme URI: https://accountingandtaxservices.com
Author: Accounting and Tax Services
Author URI: https://accountingandtaxservices.com
Description: Professional meeting scheduler for Accounting and Tax Services. Schedule consultations for personal and corporate income tax filing, new business setup, GST/PST, and payroll services. Features include client and admin dashboards, meeting booking, status tracking, email notifications, and Google Meet integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meeting-scheduler
Tags: meeting, scheduler, booking, dashboard, custom-post-type, accounting, tax
*/

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* ============================================
   Dashboard Container
   ============================================ */

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    border-bottom: 3px solid #1e3a5f;
    padding-bottom: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 0;
}

.dashboard-header h1 {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin: 0;
}

/* ============================================
   Navigation Tabs
   ============================================ */

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #1e3a5f;
    background: #f0f4f8;
}

.tab-button.active {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
    font-weight: 600;
    background: #f0f4f8;
}

/* ============================================
   Tab Content
   ============================================ */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #152a47;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 95, 0.3);
}

.btn-success {
    background: #46b450;
    color: #fff;
}

.btn-success:hover {
    background: #3a9e42;
}

.btn-danger {
    background: #dc3232;
    color: #fff;
}

.btn-danger:hover {
    background: #b52727;
}

.btn-secondary {
    background: #666;
    color: #fff;
}

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

/* ============================================
   Meeting Status Cards
   ============================================ */

.meeting-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.meeting-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.meeting-card h3 {
    color: #1e3a5f;
    margin-bottom: 10px;
    font-weight: 600;
}

.meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   Calendar
   ============================================ */

.calendar-container {
    margin-top: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #f0f0f0;
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: #c3e6cb;
}

.calendar-day.busy {
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.busy:hover {
    background: #f5c6cb;
}

.calendar-day.selected {
    background: #0073aa;
    color: #fff;
}

.calendar-day.other-month {
    color: #ccc;
    background: #f9f9f9;
}

/* ============================================
   Admin Dashboard
   ============================================ */

.meetings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.meetings-table th,
.meetings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.meetings-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.meetings-table tr:hover {
    background: #f9f9f9;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* ============================================
   Settings Section
   ============================================ */

.settings-links {
    list-style: none;
    padding: 0;
}

.settings-links li {
    margin-bottom: 15px;
}

.settings-links a {
    color: #0073aa;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.settings-links a:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

/* ============================================
   Messages & Alerts
   ============================================ */

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================
   Loading Spinner
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Navigation Styles
   ============================================ */

.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 0;
}

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

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.8em;
}

.site-title a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5em;
}

.site-title a:hover {
    color: #2c5282;
}

.site-description {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9em;
}

.main-navigation {
    flex: 1;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-navigation a:hover {
    background: #1e3a5f;
    color: #fff;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: #1e3a5f;
    color: #fff;
}

/* ============================================
   Footer Styles
   ============================================ */

.site-footer {
    background: #1e3a5f;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .site-branding {
        text-align: center;
    }

    .main-navigation {
        text-align: center;
        width: 100%;
    }

    .main-navigation ul {
        justify-content: center;
        gap: 10px;
    }

    .main-navigation a {
        padding: 6px 12px;
        font-size: 14px;
    }

    .dashboard-container {
        margin: 20px;
        padding: 15px;
    }

    .dashboard-tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }

    .calendar-day {
        padding: 5px;
        font-size: 12px;
    }

    .meetings-table {
        font-size: 14px;
    }

    .meetings-table th,
    .meetings-table td {
        padding: 8px;
    }

    .action-buttons {
        flex-direction: column;
    }
}

