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

:root {
    /* Default Theme (Dark) */
    --primary-color: #2563eb;
    --secondary-color: #7f00ff;
    --text-color: #f3f4f6;
    --light-text: #d1d5db;
    --background: #111827;
    --light-background: #1f2937;
    --border-color: #374151;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --input-bg: #1f2937;
    --primary-color-rgb: 37, 99, 235;
    --secondary-color-rgb: 127, 0, 255;
    --card-bg: #1f2937;
    --card-border: #374151;
    --button-text: #f3f4f6;
    --nav-bg: #111827;
    --contact-info-bg: #1f2937;
    --contact-info-text: #f3f4f6;
    --login-form-bg: #1f2937;
}

/* Light Theme (Lighter Dark Gray) */
.light-theme {
    --text-color: #e5e7eb;
    --light-text: #9ca3af;
    --background: #374151;
    --light-background: #4b5563;
    --border-color: #6b7280;
    --input-bg: #4b5563;
    --card-bg: #4b5563;
    --card-border: #6b7280;
    --button-text: #f3f4f6;
    --nav-bg: #374151;
    --contact-info-bg: #4b5563;
    --contact-info-text: #e5e7eb;
    --login-form-bg: #4b5563;
}

/* Light theme overrides for better visibility */
.light-theme .navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .navbar-search input {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.light-theme .navbar-search input::placeholder {
    color: var(--light-text);
}

/* Default (dark) theme search input styling */
.navbar-search input::placeholder {
    color: var(--light-text);
}

.light-theme .navbar-search button {
    color: var(--primary-color);
}

.light-theme .hero {
    background: var(--background);
}

.light-theme .hero h1,
.light-theme .hero p {
    color: var(--text-color);
}

.light-theme .workspace-setup {
    background: var(--background);
}

.light-theme .workspace-form {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.light-theme .workspace-form h2,
.light-theme .workspace-form p {
    color: var(--text-color);
}

.light-theme .workspace-form input,
.light-theme .workspace-form select {
    background: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.light-theme .workspace-form input::placeholder {
    color: var(--light-text);
}

.light-theme .features {
    background: var(--background);
}

.light-theme .features h2,
.light-theme .features p {
    color: var(--text-color);
}

.light-theme .feature-card {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.light-theme .feature-card h3,
.light-theme .feature-card p {
    color: var(--text-color);
}

.light-theme .pricing {
    background: var(--background);
}

.light-theme .pricing h2,
.light-theme .pricing p {
    color: var(--text-color);
}

.light-theme .security {
    background: var(--background);
}

.light-theme .security h2,
.light-theme .security p {
    color: var(--text-color);
}

.light-theme .security-feature {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.light-theme .security-feature h3,
.light-theme .security-feature p {
    color: var(--text-color);
}

.light-theme footer {
    background: var(--light-background);
    border-top: 1px solid var(--border-color);
}

.light-theme footer h3,
.light-theme footer p,
.light-theme footer a {
    color: var(--text-color);
}

.light-theme footer a:hover {
    color: var(--primary-color);
}

/* Contact modal light theme */
.light-theme #contact-modal > div {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

.light-theme #contact-modal h2 {
    color: var(--text-color) !important;
}

.light-theme #contact-modal label {
    color: var(--text-color) !important;
}

.light-theme #contact-modal input,
.light-theme #contact-modal select,
.light-theme #contact-modal textarea {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.light-theme #contact-modal input::placeholder,
.light-theme #contact-modal textarea::placeholder {
    color: var(--light-text) !important;
}

.light-theme #close-contact-modal {
    color: var(--light-text) !important;
}

.light-theme #close-contact-modal:hover {
    color: var(--text-color) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(127, 0, 255, 0.1));
}

.login-btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.signup-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(to bottom, var(--light-background), var(--background));
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: var(--background);
}

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

.features-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--light-background);
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background-color: var(--light-background);
}

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

.pricing-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: #1f2937;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #03035d, #060313);
    border-color: #e0e7ff;
}

.pricing-card.selected {
    background: linear-gradient(135deg, #03035d, #060313);
    border: 2px solid #818cf8;
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.1);
}

.pricing-card.selected::after {
    z-index: 3;
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    background: #10b981;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pricing-card.featured {
    transform: scale(1.05);
    background: #1f2937;
}

.pricing-card.featured::before {
    z-index: 1;
    content: '⚡';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: #374151;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 1px rgba(99, 102, 241, 0.2);
}

/* When featured card is selected, replace electric bolt with checkmark and hide the general checkmark */
.pricing-card.featured.selected {
    background: linear-gradient(135deg, #03035d, #060313);
}

.pricing-card.featured.selected::before {
    content: '✓';
    color: white;
    background: #10b981;
    z-index: 2;
}

/* Hide the general selected checkmark for featured cards to avoid double checkmarks */
.pricing-card.featured.selected::after {
    display: none;
}

/* Hide the external CSS ::before checkmark for regular cards to avoid double checkmarks */
.pricing-card.selected:not(.featured)::before {
    display: none !important;
}

/* Pricing card content styles */
.pricing-card h3 {
    color: #b9b9b9;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #b9b9b9;
    margin-bottom: 1rem;
}

.pricing-card .msrp {
    color: #64748b;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.pricing-card .save-tag {
    display: inline-block;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-card ul li {
    color: #acb6c5;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card ul li::before {
    content: '✓';
    color: #6366f1;
    font-weight: bold;
}

.pricing-card .select-plan {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card .select-plan:hover {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    transform: translateY(-2px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    color: var(--light-text);
}

.discount {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pricing-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Security Section */
.security {
    padding: 6rem 2rem;
    background-color: var(--background);
}

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

.security-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.security-feature {
    text-align: center;
    padding: 2rem;
}

.security-feature i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.security-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--light-background);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--light-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-column a:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(127, 0, 255, 0.1));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--light-text);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--card-bg);
}

/* Navbar Search Styling */
.navbar-search {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 480px;
    margin: 0 2rem;
}

.navbar-search input {
    width: 100%;
    max-width: 340px;
    padding: 0.7rem 1.2rem;
    border-radius: 2rem;
    border: 1.5px solid var(--border-color);
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    background: var(--input-bg);
    color: var(--text-color);
    transition: border 0.2s;
}

.navbar-search button {
    margin-left: -2.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #6366f1;
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar-search {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--background);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.mobile-open {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .login-btn, .signup-btn {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
    }
    
    .theme-toggle {
        margin-top: 1rem;
        align-self: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Hide workspace preview on mobile */
    .workspace-preview {
        display: none;
    }
    
    .workspace-container {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }
    
    .workspace-form {
        position: static !important;
        width: 100% !important;
        max-width: 400px;
        height: auto !important;
        margin-top: 0;
    }
    
    .workspace-features {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
        max-height: 320px;
    }
    
    .workspace-feature {
        min-height: 70px;
        padding: 0.5rem;
    }
    
    .workspace-feature .icon {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .workspace-feature .name {
        font-size: 0.75rem;
    }
    
    /* Workspace grid mobile improvements */
    .workspace-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .workspace-item {
        padding: 1rem;
        text-align: center;
    }
    
    .workspace-item h3 {
        font-size: 1rem;
        margin: 0.5rem 0;
    }
    
    .workspace-item p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .workspace-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Form improvements for mobile */
    .signup-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Features section mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    /* Security section mobile */
    .security-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Blog and content pages mobile */
    .blog-container, .comparison-container, .about-container {
        padding: 2rem 1rem;
    }
    
    .blog-header h1, .comparison-header h1, .about-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    /* User dashboard mobile */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
}

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

.feature-card, .pricing-card, .security-feature {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Summer Savings Banner */
.summer-savings-banner {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.savings-tag {
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.savings-text {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* MSRP Styling */
.msrp {
    color: var(--light-text);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Update the pulse animation to match the gradient */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(127, 0, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Removed duplicate .pricing-card.featured rule - animation is handled in the main rule */

/* Update workspace features grid to horizontal columns */
.workspace-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0.75rem;
    max-height: 460px;
    overflow-y: auto;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

/* Adjust workspace feature size */
.workspace-feature {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    height: fit-content;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

/* Adjust icon size */
.workspace-feature .icon {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

/* Adjust name size */
.workspace-feature .name {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Lower the workspace form position */
@media (min-width: 1025px) {
    .workspace-form {
        position: absolute;
        top: -25px; /* Adjusted from -65px to -25px to lower it by ~40px */
        right: -160px;
        z-index: 10;
    }
}

/* Keep existing scrollbar styles */
.workspace-features::-webkit-scrollbar {
    width: 6px;
}

.workspace-features::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 3px;
}

.workspace-features::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.workspace-features::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Update gradient buttons and elements */
.workspace-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: background 0.4s ease;
}

.workspace-submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Update navigation buttons */
.nav-btn.next {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.nav-btn.next:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Update workspace feature hover */
.workspace-feature:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
}

/* Cloud Admin Styles */
.cloud-admin-section {
    margin-top: 20px;
}

.cloud-admin-navbar {
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.cloud-nav-item {
    background: #f1f5f9;
    color: #1e293b;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cloud-nav-item.active {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.cloud-nav-item:hover:not(.active) {
    background: #e2e8f0;
}

.cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cloud-admin-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cloud-stat-card {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.cloud-action-btn {
    background: var(--primary-color, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.cloud-action-btn:hover {
    background: var(--primary-hover-color, #2563eb);
}

.cloud-action-btn.secondary {
    background: #f1f5f9;
    color: #1e293b;
}

.cloud-action-btn.secondary:hover {
    background: #e2e8f0;
}

.cloud-action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.cloud-action-btn.danger:hover {
    background: #fecaca;
}

.storage-usage-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#storage-usage-fill {
    height: 100%;
    background: var(--primary-color, #3b82f6);
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.status-indicator {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.status-active {
    background: #22c55e;
}

.status-error {
    background: #ef4444;
}

.status-warning {
    background: #f59e0b;
}

/* Dark mode support for Cloud Admin */
@media (prefers-color-scheme: dark) {
    .cloud-admin-card {
        background: var(--dark-card-bg, #1e293b);
    }
    
    .cloud-stat-card {
        background: var(--dark-highlight-bg, #0f172a);
    }
    
    .cloud-nav-item {
        background: var(--dark-button-bg, #334155);
        color: var(--dark-text, #e2e8f0);
    }
    
    .cloud-nav-item:hover:not(.active) {
        background: var(--dark-button-hover, #475569);
    }
    
    .cloud-action-btn.secondary {
        background: var(--dark-button-bg, #334155);
        color: var(--dark-text, #e2e8f0);
    }
    
    .cloud-action-btn.secondary:hover {
        background: var(--dark-button-hover, #475569);
    }
    
    .cloud-action-btn.danger {
        background: #7f1d1d;
        color: #fecaca;
    }
    
    .cloud-action-btn.danger:hover {
        background: #991b1b;
    }
    
    .storage-usage-bar {
        background: var(--dark-border-color, #1e293b);
    }
}

/* Cloud Admin Loading States and Error Handling */
.cloud-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #64748b;
}

.cloud-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

.cloud-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.cloud-error i {
    margin-right: 0.5rem;
}

.cloud-error-message {
    font-weight: 500;
}

.cloud-retry-btn {
    background: #475569;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    cursor: pointer;
}

.cloud-retry-btn:hover {
    background: #334155;
}

.cloud-connection-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.cloud-connection-status.online {
    color: #10b981;
}

.cloud-connection-status.error {
    color: #ef4444;
}

.cloud-connection-status.warning {
    color: #f59e0b;
}

.cloud-connection-status i {
    margin-right: 0.5rem;
}

.cloud-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cloud Modal Updates */
#create-cloud-user-modal,
#edit-cloud-user-modal {
    background-color: rgba(30, 41, 59, 0.9);
    z-index: 99999;
}

/* Additional status colors */
.status-pending {
    background-color: #f3f4f6;
    color: #475569;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-maintenance {
    background-color: #ffedd5;
    color: #c2410c;
}

/* Response indicators */
.cloud-api-response-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #1e293b;
    color: white;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cloud-api-response-indicator.show {
    opacity: 1;
}

.cloud-api-response-indicator.success {
    background: #10b981;
}

.cloud-api-response-indicator.error {
    background: #ef4444;
}

.cloud-api-response-indicator.pending {
    background: #3b82f6;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-color);
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.light-theme .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Contact Page Styles Updates */
.contact-info {
    background-color: var(--contact-info-bg);
    color: var(--contact-info-text);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-info h3,
.contact-info p {
    color: var(--contact-info-text);
}

.contact-form {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Login Page Styles */
.login-container {
    max-width: 450px;
    margin: 6rem auto;
    padding: 2rem;
    background-color: var(--login-form-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--button-text);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    text-decoration: underline;
} 