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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 50%, #006b96 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #1a365d;
    position: relative;
    overflow-x: hidden;
}

/* Animated water ripples background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(129, 230, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56, 178, 172, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(72, 187, 120, 0.1) 0%, transparent 50%);
    animation: ripple 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes ripple {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(2deg); opacity: 0.5; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #e6fffa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
    color: #e6fffa;
    font-weight: 500;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38b2ac, #4fd1c7, #81e6d9);
    border-radius: 24px 24px 0 0;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 30px 60px rgba(31, 38, 135, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.92);
}

.card h3 {
    color: #0891b2;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Status Badges - Ocean/Ice themed */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-research { background: rgba(129, 230, 217, 0.25); color: #0891b2; border-color: rgba(129, 230, 217, 0.5); }
.status-development { background: rgba(56, 178, 172, 0.25); color: #065f46; border-color: rgba(56, 178, 172, 0.5); }
.status-testing { background: rgba(147, 197, 253, 0.25); color: #1e3a8a; border-color: rgba(147, 197, 253, 0.5); }
.status-live { background: rgba(72, 187, 120, 0.25); color: #064e3b; border-color: rgba(72, 187, 120, 0.5); }
.status-paused { background: rgba(203, 213, 225, 0.35); color: #475569; border-color: rgba(203, 213, 225, 0.6); }
.status-active { background: rgba(72, 187, 120, 0.25); color: #064e3b; border-color: rgba(72, 187, 120, 0.5); }
.status-suspended { background: rgba(251, 146, 60, 0.25); color: #9a3412; border-color: rgba(251, 146, 60, 0.5); }
.status-pending { background: rgba(129, 230, 217, 0.25); color: #0891b2; border-color: rgba(129, 230, 217, 0.5); }
.status-working { background: rgba(56, 178, 172, 0.25); color: #065f46; border-color: rgba(56, 178, 172, 0.5); }
.status-broken { background: rgba(251, 146, 60, 0.25); color: #9a3412; border-color: rgba(251, 146, 60, 0.5); }
.status-partial { background: rgba(129, 230, 217, 0.25); color: #0891b2; border-color: rgba(129, 230, 217, 0.5); }
.status-not-used { background: rgba(203, 213, 225, 0.35); color: #475569; border-color: rgba(203, 213, 225, 0.6); }

/* Forms - Enhanced glass morphism */
.form-group {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0f766e;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(56, 178, 172, 0.25);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    color: #0f766e;
    font-family: inherit;
    position: relative;
    z-index: 2;
}

/* Fix dropdown z-index issues */
.form-group select {
    z-index: 10;
}

.form-group select:focus {
    z-index: 20;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(15, 118, 110, 0.6);
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38b2ac;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 
        0 0 0 4px rgba(56, 178, 172, 0.12),
        0 12px 32px rgba(56, 178, 172, 0.18);
    transform: translateY(-3px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* Ensure proper stacking context for form elements */
.form-row .form-group:focus-within {
    z-index: 15;
}

.form-row-3 .form-group:focus-within {
    z-index: 15;
}

/* Buttons - Enhanced ocean wave inspired */
.btn {
    background: linear-gradient(135deg, #0891b2 0%, #38b2ac 50%, #4fd1c7 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.05rem;
    box-shadow: 
        0 12px 28px rgba(8, 145, 178, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 45px rgba(8, 145, 178, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 12px 28px rgba(245, 101, 101, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 12px 28px rgba(72, 187, 120, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 12px 28px rgba(237, 137, 54, 0.35);
}

/* Items - Enhanced frosted glass effect */
.project-item, .idea-item, .account-item, .workspace-item, .schedule-item {
    background: rgba(230, 255, 250, 0.45);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 18px;
    border-left: 5px solid #38b2ac;
    border: 1px solid rgba(56, 178, 172, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-item:hover, .idea-item:hover, .account-item:hover, .workspace-item:hover, .schedule-item:hover {
    background: rgba(230, 255, 250, 0.65);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 15px 40px rgba(56, 178, 172, 0.18);
    border-color: rgba(56, 178, 172, 0.4);
}

.project-item h4, .idea-item h4, .account-item h4, .workspace-item h4, .schedule-item h4 {
    color: #0f766e;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.project-meta, .item-meta {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
    color: #0891b2;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-weight: 500;
}

.project-actions, .item-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* API Status Indicators */
.api-status {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.api-item {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    border: 1px solid;
    transition: all 0.3s ease;
}

.api-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.api-working { background: rgba(72, 187, 120, 0.25); color: #065f46; border-color: rgba(72, 187, 120, 0.5); }
.api-broken { background: rgba(251, 146, 60, 0.25); color: #9a3412; border-color: rgba(251, 146, 60, 0.5); }
.api-partial { background: rgba(129, 230, 217, 0.25); color: #0891b2; border-color: rgba(129, 230, 217, 0.5); }
.api-not-used { background: rgba(203, 213, 225, 0.35); color: #475569; border-color: rgba(203, 213, 225, 0.6); }

/* Grids */
.accounts-grid, .workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

/* Workspace specific styles */
.workspace-item.favorite {
    border-left-color: #48bb78;
    background: rgba(240, 255, 244, 0.55);
    border-color: rgba(72, 187, 120, 0.35);
}

.workspace-rating {
    display: flex;
    gap: 4px;
    margin: 12px 0;
    align-items: center;
}

.star {
    color: #f6ad55;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(246, 173, 85, 0.35);
    transition: all 0.2s ease;
}

.star:hover {
    transform: scale(1.1);
}

.workspace-features {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 6px 12px;
    background: rgba(230, 255, 250, 0.6);
    border-radius: 18px;
    font-size: 0.8rem;
    color: #0f766e;
    border: 1px solid rgba(56, 178, 172, 0.25);
    backdrop-filter: blur(12px);
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.15);
}

.feature-excellent { background: rgba(72, 187, 120, 0.25); color: #065f46; border-color: rgba(72, 187, 120, 0.5); }
.feature-good { background: rgba(56, 178, 172, 0.25); color: #065f46; border-color: rgba(56, 178, 172, 0.5); }
.feature-fair { background: rgba(129, 230, 217, 0.25); color: #0891b2; border-color: rgba(129, 230, 217, 0.5); }
.feature-poor { background: rgba(251, 146, 60, 0.25); color: #9a3412; border-color: rgba(251, 146, 60, 0.5); }
.feature-quiet { background: rgba(56, 178, 172, 0.25); color: #065f46; border-color: rgba(56, 178, 172, 0.5); }
.feature-moderate { background: rgba(129, 230, 217, 0.25); color: #0891b2; border-color: rgba(129, 230, 217, 0.5); }
.feature-noisy { background: rgba(251, 146, 60, 0.25); color: #9a3412; border-color: rgba(251, 146, 60, 0.5); }

/* Schedule items */
.schedule-item {
    border-left-color: #48bb78;
}

.schedule-time {
    font-weight: 700;
    color: #0891b2;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.schedule-upcoming {
    border-left-color: #0891b2;
}

.schedule-today {
    border-left-color: #f6ad55;
    background: rgba(254, 245, 231, 0.55);
    border-color: rgba(246, 173, 85, 0.35);
}

/* Tabs - Enhanced floating ice effect */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow-x: auto;
}

.tab {
    flex: 1;
    padding: 18px 26px;
    text-align: center;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    min-width: 140px;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateY(-3px);
}

.tab.active {
    background: linear-gradient(135deg, #0891b2 0%, #38b2ac 100%);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(8, 145, 178, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Stats - Enhanced ice crystal effect */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38b2ac, #4fd1c7, #81e6d9);
    border-radius: 22px 22px 0 0;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(56, 178, 172, 0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Modals - Enhanced deep sea glass */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 40px;
    max-width: 750px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 60px rgba(31, 38, 135, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: #0891b2;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #0f766e;
    transform: scale(1.15);
    background: rgba(8, 145, 178, 0.1);
}

/* Utility Classes */
.loading {
    text-align: center;
    padding: 30px;
    color: #0891b2;
    font-weight: 600;
    font-size: 1.1rem;
}

.error {
    background: rgba(248, 113, 113, 0.18);
    color: #991b1b;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(248, 113, 113, 0.35);
    backdrop-filter: blur(12px);
    font-weight: 500;
}

.success {
    background: rgba(72, 187, 120, 0.18);
    color: #064e3b;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(72, 187, 120, 0.35);
    backdrop-filter: blur(12px);
    font-weight: 500;
}

.warning {
    background: rgba(251, 146, 60, 0.18);
    color: #9a3412;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(251, 146, 60, 0.35);
    backdrop-filter: blur(12px);
    font-weight: 500;
}

.idea-scores {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 0.95rem;
}

.score-item {
    padding: 8px 15px;
    background: rgba(230, 255, 250, 0.45);
    border-radius: 20px;
    border: 1px solid rgba(56, 178, 172, 0.25);
    backdrop-filter: blur(12px);
    color: #0f766e;
    font-weight: 600;
    transition: all 0.3s ease;
}

.score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 178, 172, 0.15);
}

/* Time indicator */
.time-indicator {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #0891b2, #38b2ac);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    box-shadow: 0 6px 16px rgba(8, 145, 178, 0.35);
    letter-spacing: 0.3px;
}

/* Range sliders - Enhanced cool theme */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #38b2ac, #4fd1c7);
    outline: none;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.2s ease;
}

input[type="range"]:hover {
    opacity: 1;
    transform: translateY(-1px);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(56, 178, 172, 0.45);
    border: 3px solid #38b2ac;
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(56, 178, 172, 0.6);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(56, 178, 172, 0.45);
    border: 3px solid #38b2ac;
    -moz-appearance: none;
}

/* Checkboxes - Enhanced ocean theme */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #38b2ac;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: all 0.3s ease;
}

input[type="checkbox"]:hover {
    transform: scale(1.05);
    border-color: #0891b2;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #0891b2, #38b2ac);
    border-color: #0891b2;
    transform: scale(1.05);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

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

.empty-state h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0f766e;
}

.empty-state p {
    color: #38b2ac;
    margin-bottom: 20px;
    font-size: 1rem;
}

.empty-state .btn {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .project-meta, .item-meta {
        flex-direction: column;
        gap: 10px;
    }

    .project-actions, .item-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tabs {
        overflow-x: auto;
        padding: 8px;
    }

    .tab {
        min-width: 120px;
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    .accounts-grid, .workspace-grid, .schedule-grid {
        grid-template-columns: 1fr;
    }

    .workspace-features {
        justify-content: center;
    }

    .card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .modal-content {
        padding: 30px 25px;
        margin: 20px;
        max-height: 90vh;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .idea-scores {
        flex-direction: column;
        gap: 10px;
    }
    
    .api-status {
        flex-direction: column;
        gap: 10px;
    }
}