/* ===================================
   Skwiz - Software Solutions Website
   Primary Pink: #E91E63
   Primary Blue: #2196F3
   Gradient: Pink to Blue
   =================================== */

:root {
    --skwiz-pink: #E91E63;
    --skwiz-magenta: #9C27B0;
    --skwiz-blue: #2196F3;
    --skwiz-cyan: #00BCD4;
    --skwiz-gradient: linear-gradient(135deg, #E91E63 0%, #9C27B0 50%, #2196F3 100%);
    --skwiz-gradient-horizontal: linear-gradient(90deg, #E91E63 0%, #9C27B0 35%, #2196F3 70%, #00BCD4 100%);
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --dark-text: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

a {
    color: var(--skwiz-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--skwiz-magenta);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 26, 46, 0.98);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--white);
    background: rgba(233, 30, 99, 0.2);
}

.navbar-nav .nav-link.active {
    color: var(--skwiz-pink);
    font-weight: 600;
}

.navbar-nav .nav-link.btn-cta {
    background: var(--skwiz-gradient);
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
}

.navbar-nav .nav-link.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.navbar-toggler {
    border: 2px solid var(--skwiz-pink);
    padding: 0.5rem;
}

.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%28233, 30, 99, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(233, 30, 99, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(33, 150, 243, 0.12) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero h1 .gradient-text {
    background: var(--skwiz-gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-primary {
    background: var(--skwiz-gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--skwiz-pink);
    color: var(--skwiz-pink);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--skwiz-gradient);
    border-color: transparent;
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-text);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: var(--skwiz-gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-dark p, .bg-dark li {
    color: var(--white);
}

.bg-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

/* Stats Section */
.stats-section {
    background: var(--skwiz-gradient);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.75rem;
    background: var(--skwiz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--skwiz-pink);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--skwiz-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card .icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h4 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--skwiz-pink);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--skwiz-blue);
}

.service-card h4 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    display: flex;
    align-items: center;
}

.service-card ul li i {
    color: var(--skwiz-pink);
    margin-right: 0.75rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 5rem;
    background: var(--skwiz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.testimonial-author-info span {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--skwiz-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h4 {
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--gray-600);
}

/* Technologies */
.tech-logo {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.tech-logo:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tech-logo i {
    font-size: 3rem;
    background: var(--skwiz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--skwiz-pink);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Contact Info */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--skwiz-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-item .icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.08) 0%, transparent 50%);
}

.page-header h1 {
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card-img {
    height: 200px;
    background: var(--skwiz-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-img i {
    font-size: 5rem;
    color: var(--white);
}

.team-card-body {
    padding: 1.5rem;
}

.team-card h4 {
    margin-bottom: 0.25rem;
}

.team-card .position {
    color: var(--skwiz-pink);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--skwiz-gradient);
    transform: translateY(-3px);
}

.footer h5 {
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--skwiz-pink);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    background: var(--skwiz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.75rem;
    width: 20px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.footer-bottom {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--skwiz-pink);
}

/* CTA Section */
.cta-section {
    background: var(--skwiz-gradient);
    padding: 4rem 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.cta-section .btn-light {
    background: var(--white);
    color: var(--dark-text);
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background: var(--dark-bg);
    color: var(--white);
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: #1a1a2e;
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link.btn-cta {
        margin: 1rem 0 0;
        text-align: center;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Blazor specific */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem;
    background: #b32121;
    color: white;
    text-align: center;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}

/* ===================================
   Invoice Styles
   =================================== */

.invoice-page {
    background: var(--gray-100);
    min-height: 100vh;
    padding: 2rem;
    padding-top: 100px;
}

.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.invoice-brand {
    display: flex;
    flex-direction: column;
}

.invoice-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.company-details {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.invoice-title h1 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin: 0 0 1rem 0;
    text-align: right;
    background: var(--skwiz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.invoice-meta {
    text-align: right;
    font-size: 0.9rem;
}

.invoice-meta td {
    padding: 0.25rem 0;
}

.invoice-meta td:first-child {
    padding-right: 1rem;
    color: var(--gray-600);
}

.invoice-addresses {
    margin-bottom: 2rem;
}

.bill-to h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.bill-to p {
    margin: 0.25rem 0;
    color: var(--dark-text);
}

.invoice-items {
    margin-bottom: 2rem;
}

.invoice-items table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-items thead tr {
    background: var(--skwiz-gradient-horizontal);
}

.invoice-items th {
    background: transparent;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-items td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.invoice-items .desc-col {
    width: 50%;
}

.invoice-items .qty-col,
.invoice-items .rate-col,
.invoice-items .amount-col {
    width: 16.66%;
    text-align: right;
}

.invoice-items th.qty-col,
.invoice-items th.rate-col,
.invoice-items th.amount-col {
    text-align: right;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: block;
    margin-top: 0.5rem;
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.invoice-totals table {
    width: 300px;
}

.invoice-totals td {
    padding: 0.5rem 0;
}

.invoice-totals td:first-child {
    text-align: left;
    color: var(--gray-600);
}

.invoice-totals td:last-child {
    text-align: right;
    font-weight: 500;
}

.invoice-totals .total-row td {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-200);
}

.invoice-totals .total-row td:last-child {
    color: var(--skwiz-pink);
}

.invoice-totals .balance-row td {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--skwiz-pink);
}

.invoice-notes,
.invoice-payment {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.invoice-notes h4,
.invoice-payment h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.invoice-notes p,
.invoice-payment p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.invoice-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-style: italic;
}

.invoice-actions {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}

/* Print Styles */
@media print {
    .no-print,
    .navbar,
    .footer {
        display: none !important;
    }

    .invoice-page {
        background: white;
        padding: 0;
        padding-top: 0;
    }

    .invoice-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }

    .invoice-items th {
        background: var(--dark-text) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-title h1 {
        color: var(--skwiz-pink);
        -webkit-text-fill-color: var(--skwiz-pink);
    }

    .invoice-totals .total-row td:last-child,
    .invoice-totals .balance-row td {
        color: var(--dark-text);
    }

    body {
        font-size: 12pt;
    }

    .invoice-logo {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .invoice-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .invoice-title h1 {
        text-align: left;
    }

    .invoice-meta {
        text-align: left;
    }

    .invoice-items .desc-col {
        width: 40%;
    }

    .invoice-totals table {
        width: 100%;
    }
}
