/* Core Design System for NY Hisar Tekstil */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: hsl(0, 0%, 10%); /* Rich Black */
    --primary-light: hsl(0, 0%, 25%);
    --primary-hover: hsl(0, 0%, 4%);
    --accent: hsl(44, 72%, 46%); /* Premium Gold / Mustard */
    --accent-hover: hsl(44, 72%, 38%);
    --bg-main: hsl(0, 0%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --text-main: hsl(0, 0%, 15%);
    --text-muted: hsl(0, 0%, 45%);
    --border: hsl(0, 0%, 90%);
    --success: hsl(142, 72%, 29%);
    --danger: hsl(0, 72%, 50%);
    
    /* Layout */
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 115, 32, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: hsl(0, 0%, 95%);
    border-color: var(--text-muted);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: hsl(0, 72%, 40%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--border-radius-sm);
}

/* Alert Boxes */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: hsl(142, 70%, 95%);
    color: var(--success);
    border: 1px solid hsl(142, 70%, 90%);
}

.alert-danger {
    background-color: hsl(0, 70%, 95%);
    color: var(--danger);
    border: 1px solid hsl(0, 70%, 90%);
}

/* Hero Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: hsl(220, 20%, 10%);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 650px;
    padding-left: 20px;
}

.slide-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.slide-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 4;
    display: flex;
    gap: 12px;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Home Section Layouts */
.section {
    padding: 96px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 54px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 30px;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Grid */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(204, 160, 34, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.contact-form-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contact-form-container .message-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 20px;
}

.contact-form-container .message-group textarea {
    flex-grow: 1;
    min-height: 140px;
    resize: vertical;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 40px;
}

.auth-card-wide {
    max-width: 650px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* User & Admin Portals */
.portal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background-color: var(--primary);
    color: white;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.portal-content {
    padding: 48px;
    overflow-y: auto;
    background-color: var(--bg-main);
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.portal-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* Standard Table design */
.table-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: hsl(220, 15%, 97%);
    color: var(--primary);
    font-weight: 700;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
}

.badge-pending {
    background-color: hsl(40, 100%, 93%);
    color: hsl(40, 90%, 35%);
}

.badge-completed {
    background-color: hsl(142, 70%, 93%);
    color: var(--success);
}

.badge-failed {
    background-color: hsl(0, 70%, 93%);
    color: var(--danger);
}

/* Drag and Drop Item Sorting styles */
.sortable-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

.sortable-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 16px 24px;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.sortable-item.dragging {
    opacity: 0.5;
    background-color: hsl(220, 15%, 95%);
    border-style: dashed;
    cursor: grabbing;
}

.sortable-handle {
    margin-right: 20px;
    color: var(--text-muted);
    font-size: 20px;
}

.sortable-img {
    width: 80px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    margin-right: 20px;
}

.sortable-details {
    flex-grow: 1;
}

.sortable-details h4 {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.sortable-details p {
    font-size: 13px;
    color: var(--text-muted);
}

.sortable-actions {
    margin-left: 20px;
}

/* Map placeholder / Frame */
.map-iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Footer styling */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.footer-about h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        padding: 20px;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
    }
    .portal-content {
        padding: 24px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 16px 0;
        gap: 16px;
    }
    .nav-links {
        gap: 16px;
    }
    .slide-title {
        font-size: 32px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

.customer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .customer-grid {
        grid-template-columns: 1fr;
    }
}

/* Unified Page Header Style (All Subpages) */
.page-header-banner {
    background-color: var(--primary);
    color: white;
    padding: 48px 0;
    border-bottom: 3px solid var(--accent);
}

.page-header-banner .breadcrumbs {
    font-size: 13.5px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header-banner .breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.page-header-banner .breadcrumbs a:hover {
    color: var(--accent);
}

.page-header-banner .breadcrumbs span.current {
    color: var(--accent);
    font-weight: 600;
}

.page-header-banner h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: white;
}

.page-header-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
}

/* Home About Teaser Section */
.about-teaser-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-teaser-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
