:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc05;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: white;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.meeting-quickstart {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.meeting-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.meeting-input input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.create-meeting-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Meeting Preview */
.meeting-preview {
    background: var(--dark-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 2px;
    background: #000;
}

.video-tile {
    aspect-ratio: 16/9;
    background: #333;
    border-radius: 4px;
}

.video-tile.active-speaker {
    border: 3px solid var(--primary-color);
}

.meeting-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: white;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #e8e8e8;
}

.control-btn.recording {
    background: var(--danger-color);
    color: white;
}

.control-btn.end-call {
    background: var(--danger-color);
    color: white;
}

/* Features */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section a {
    color: #bdc1c6;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #3c4043;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3c4043;
    color: #9aa0a6;
}

/* Dashboard Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--dark-color);
    color: white;
    padding: 20px 0;
}

.sidebar-header {
    padding: 0 20px 30px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.sidebar-menu a {
    color: #bdc1c6;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: #3c4043;
    color: white;
}

.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid #3c4043;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    flex: 1;
}

.logout-btn {
    color: #bdc1c6;
    text-decoration: none;
    font-size: 18px;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background: #f8f9fa;
}

.topbar {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-notification {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-color);
    cursor: pointer;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-content {
    padding: 30px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.action-icon.create {
    background: #e8f0fe;
    color: var(--primary-color);
}

.action-icon.schedule {
    background: #e6f4ea;
    color: var(--secondary-color);
}

.action-icon.join {
    background: #fef7e0;
    color: var(--warning-color);
}

.action-icon.recordings {
    background: #fce8e6;
    color: var(--danger-color);
}

.section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meeting-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.meeting-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.meeting-time {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
    min-width: 100px;
}

.meeting-time .time {
    font-size: 24px;
    font-weight: 600;
}

.meeting-time .date {
    color: var(--gray-color);
    font-size: 14px;
}

.meeting-details {
    flex: 1;
    padding: 0 30px;
}

.meeting-details h3 {
    margin-bottom: 5px;
}

.meeting-details p {
    color: var(--gray-color);
    margin-bottom: 5px;
}

.meeting-code {
    font-family: monospace;
    color: var(--primary-color);
    font-weight: 500;
}

.meeting-actions {
    display: flex;
    gap: 10px;
}

.btn-start {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recordings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.recording-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s;
}

.recording-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.recording-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.recording-status.pending {
    background: #fef7e0;
    color: var(--warning-color);
}

.recording-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-approve, .btn-deny, .btn-preview {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.btn-approve {
    background: var(--secondary-color);
    color: white;
}

.btn-deny {
    background: var(--danger-color);
    color: white;
}

.btn-preview {
    background: var(--light-color);
    color: var(--dark-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .sidebar {
        width: 70px;
    }
    
    .sidebar-menu span,
    .sidebar .logo span,
    .user-info {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .meeting-input {
        flex-direction: column;
    }
    
    .meeting-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .meeting-time {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        width: 100%;
    }
}

/* Tooltips */
.tooltip {
    position: fixed;
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}

.toast-success {
    border-left: 4px solid var(--secondary-color);
}

.toast-success::before {
    content: '\f00c';
    color: var(--secondary-color);
}

.toast-error {
    border-left: 4px solid var(--danger-color);
}

.toast-error::before {
    content: '\f00d';
    color: var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-warning::before {
    content: '\f12a';
    color: var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-info::before {
    content: '\f05a';
    color: var(--primary-color);
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 1000;
    display: none;
    padding: 10px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: var(--light-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Network Indicator */
.network-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    color: white;
    font-size: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.network-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.network-indicator.good {
    background: var(--secondary-color);
}

.network-indicator.medium {
    background: var(--warning-color);
}

.network-indicator.poor {
    background: var(--danger-color);
}