:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #f8f9fa;
}

[data-bs-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
.navbar-custom {
    background-color: transparent !important;
    box-shadow: none;
    padding: 0.5rem 0;
    transition: all 0.4s ease;
    border-bottom: none;
    min-height: 60px;
    height: 60px;
}

.navbar-custom.scrolled {
    background-color: #1a237e !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-custom {
    background-color: transparent !important;
}

[data-bs-theme="dark"] .navbar-custom.scrolled {
    background-color: #0a0e2e !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom .navbar-brand img {
    max-height: 40px;
    width: auto;
}

.navbar-custom .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

.navbar-custom .btn-contact {
    margin-left: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    background-color: #0D6EFD !important;
    border-color: #0D6EFD !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-custom .btn-contact:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

[data-bs-theme="dark"] .navbar-custom .btn-contact {
    background-color: #2D2D2D !important;
    border-color: #2D2D2D !important;
}

[data-bs-theme="dark"] .navbar-custom .btn-contact:hover {
    background-color: #3d3d3d !important;
    border-color: #3d3d3d !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    margin-top: 0;
    transition: background 0.3s ease;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0a0e2e 0%, #121629 50%, #1a1f3a 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/gosheet-pc-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

[data-bs-theme="dark"] .hero-section::before {
    background-image: url('../assets/images/gosheet-pc-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.hero-section::after {
    content: '₹';
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35rem;
    font-weight: 900;
    color: rgba(0, 191, 165, 0.15);
    font-family: Arial, sans-serif;
    z-index: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .hero-section::after {
    color: rgba(100, 200, 255, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: -2rem;
}


.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.hero-title .highlight-free {
    color: #ff1744;
    font-weight: 900;
}

[data-bs-theme="dark"] .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .hero-title .highlight-free {
    color: #ff6b6b;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Download Buttons Wrapper */
.download-buttons-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
}

/* Playstore Button Style */
.playstore-btn {
    background-color: #0D6EFD !important;
    border: none !important;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    flex: 1;
    height: auto;
    transition: all 0.3s ease;
}

.playstore-btn:hover {
    background-color: #0b5ed7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .playstore-btn {
    background-color: #2d2d2d !important;
}

[data-bs-theme="dark"] .playstore-btn:hover {
    background-color: #3d3d3d !important;
}

.playstore-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
    padding-left: 40px;
}

.playstore-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

[data-bs-theme="dark"] .playstore-icon {
    filter: grayscale(1);
}

.playstore-btn-top {
    font-size: 0.7rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    line-height: 1;
}

.playstore-btn-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playstore-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.download-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
}

[data-bs-theme="dark"] .download-form {
    background: #2d2d2d;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Download Form Submit Button */
.download-form .btn-primary {
    background-color: #0D6EFD !important;
    border-color: #0D6EFD !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.download-form .btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

[data-bs-theme="dark"] .download-form .btn-primary {
    background-color: #494949 !important;
    border-color: #2D2D2D !important;
}

[data-bs-theme="dark"] .download-form .btn-primary:hover {
    background-color: #3d3d3d !important;
    border-color: #3d3d3d !important;
}

.section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Update Page Styles */
.table {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.table thead th {
    background-color: var(--card-bg);
    border-color: var(--card-bg);
    font-weight: 600;
}

.table tbody td {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .table tbody td {
    border-color: rgba(255, 255, 255, 0.1);
}

.table code {
    background-color: var(--card-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-color);
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    color: var(--text-color);
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.4);
}

/* Update Entry Styles */
.update-log {
    max-width: 100%;
}

.update-entry {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.update-header {
    margin-bottom: 1rem;
}

.update-version {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.update-date {
    font-size: 1rem;
    font-weight: normal;
}

.update-content {
    margin-top: 1rem;
}

.update-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.update-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.update-content ul {
    padding-left: 1.5rem;
}

.update-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.section-alt {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .section-alt {
    background-color: #333333;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

#blog-main-content { color: inherit; }
#blog-main-content:hover { color: inherit; opacity: 0.9; }

.section-title .highlight-text {
    color: #0D6EFD;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .section-title .highlight-text {
    color: #ffffff;
}

.card-custom {
    background-color: var(--card-bg);
    border: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    background: transparent !important;
    border: none !important;
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    color: #ffffff;
    margin-left: 0.5rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: transparent !important;
    border: none !important;
    color: #ffffff;
    opacity: 0.8;
}

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

.navbar-custom.scrolled .theme-toggle {
    background: transparent !important;
    border: none !important;
}

[data-bs-theme="dark"] .theme-toggle {
    background: transparent !important;
    border: none !important;
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background: transparent !important;
    border: none !important;
    opacity: 0.8;
}

[data-bs-theme="dark"] .navbar-custom.scrolled .theme-toggle {
    background: transparent !important;
    border: none !important;
}

/* Mobile Controls Wrapper */
.navbar-mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Theme Toggle - Left side of navbar-toggler */
.theme-toggle-mobile {
    background: transparent !important;
    border: none !important;
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    color: #ffffff;
    margin-right: 0;
    transition: all 0.3s;
}

.theme-toggle-mobile:hover {
    background: transparent !important;
    border: none !important;
    color: #ffffff;
    opacity: 0.8;
}

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

[data-bs-theme="dark"] .theme-toggle-mobile {
    background: transparent !important;
    border: none !important;
}

[data-bs-theme="dark"] .theme-toggle-mobile:hover {
    background: transparent !important;
    border: none !important;
    opacity: 0.8;
}

.price-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    transition: all 0.3s;
}

.price-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
}

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

.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.star-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    background-color: var(--card-bg);
    padding: 3rem 0 1rem;
}

/* Mobile Navbar Animation - Right to Left */
@media (max-width: 991.98px) {
    .navbar-custom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-color);
        padding: 2rem 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        z-index: -1;
        pointer-events: none;
    }

    .navbar-collapse.show::before {
        opacity: 1;
        pointer-events: all;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 25px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .download-buttons-wrapper {
        flex-wrap: nowrap;
        gap: 0.4rem;
        overflow: hidden;
    }
    .playstore-btn {
        min-width: 0;
        flex: 1;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    .playstore-btn-top {
        font-size: 0.6rem;
    }
    .playstore-text {
        font-size: 0.9rem;
    }
    .playstore-icon {
        width: 22px;
        height: 22px;
    }
    .playstore-btn-content {
        padding-left: 30px;
    }
    .hero-section {
        padding-top: 65px;
    }
    .hero-section::after {
        font-size: 20rem;
        left: -10%;
    }
    .navbar-custom .btn-contact {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    .navbar-custom .navbar-nav {
        margin-top: 1rem;
    }
    .navbar-custom {
        padding: 0.4rem 0;
        min-height: 55px;
        height: 55px;
    }
    .navbar-custom .navbar-brand img {
        max-height: 35px;
    }
    
    .section-title .highlight-text {
        display: block;
        margin-top: 0.25rem;
    }
}

/* Update Hero Section - Similar to hero section for navbar visibility */
.update-hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    margin-top: 0;
    transition: background 0.3s ease;
}

[data-bs-theme="dark"] .update-hero-section {
    background: linear-gradient(135deg, #0a0e2e 0%, #121629 50%, #1a1f3a 100%);
}

.update-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/gosheet-pc-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

[data-bs-theme="dark"] .update-hero-section::before {
    background-image: url('../assets/images/gosheet-pc-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.update-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.update-hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.update-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .update-hero-section {
        min-height: 30vh;
        padding-top: 80px;
    }
    
    .update-hero-title {
        font-size: 2rem;
    }
    
    .update-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .update-hero-description {
        font-size: 1rem;
    }
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #0D6EFD;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
    background-clip: padding-box;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #0D6EFD;
    background-clip: padding-box;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
    background-clip: padding-box;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #0D6EFD #f1f1f1;
}

[data-bs-theme="dark"] * {
    scrollbar-color: #0D6EFD #2d2d2d;
}

/* Copy Button Styles */
.copy-btn {
    min-width: 70px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.example-text {
    word-break: break-all;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Table responsive adjustments for copy button */
@media (max-width: 768px) {
    .example-text {
        font-size: 0.8rem;
    }
    
    .copy-btn {
        min-width: 60px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

