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

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #10b981;
    --accent-hover: #059669;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #f8fafc !important;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .font-bold {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    color: #0f172a;
}

/* --- SIDEBAR MODERN STYLING --- */
.navbar-default {
    background-color: var(--dark-bg) !important;
    border: none !important;
}

.navbar-static-side {
    background: var(--dark-bg) !important;
    box-shadow: 2px 0 15px rgba(0,0,0,0.05);
}

.nav-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    padding: 24px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo-text {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-header .profile-element .user-name {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.nav > li > a {
    color: #94a3b8 !important;
    font-weight: 500;
    padding: 12px 20px !important;
    border-radius: var(--radius-sm);
    margin: 4px 12px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav > li > a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.nav > li > a:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

.nav > li > a:hover i {
    color: #38bdf8;
}

.nav > li.active > a {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav > li.active > a i {
    color: #fff !important;
}

.nav > li.active {
    border-left: none !important;
    background: transparent !important;
}

/* --- TOP NAVBAR --- */
.navbar.navbar-fixed-top {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-subtle);
}

.minimalize-styl-2 {
    background: #f1f5f9 !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    transition: all 0.2s ease;
}

.minimalize-styl-2:hover {
    background: #e2e8f0 !important;
}

.navbar-top-links li a {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.navbar-top-links li a:hover {
    color: var(--primary) !important;
}

/* --- PAGE HEADING & BREADCRUMB --- */
.page-heading {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 24px 30px !important;
    background: #fff !important;
}

.page-heading h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0;
}

.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-top: 6px !important;
    font-size: 13px;
}

.breadcrumb > li + li:before {
    color: #cbd5e1 !important;
}

/* --- CONTENT AREA & CARDS --- */
#page-wrapper {
    background-color: #f8fafc !important;
}

.wrapper-content {
    padding: 24px 30px !important;
}

.ibox {
    background: #fff;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 24px;
    overflow: hidden;
}

.ibox-content {
    background: #fff !important;
    border: none !important;
    padding: 20px !important;
}

.ibox-title {
    background: #fff !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 16px 20px !important;
}

/* --- BUTTONS --- */
.btn {
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-outline.btn-primary {
    background: transparent !important;
    border: 1px solid #2563eb !important;
    color: #2563eb !important;
    box-shadow: none !important;
}

.btn-outline.btn-primary:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.25);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-white {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

.btn-white:hover {
    background: #f1f5f9 !important;
}

/* --- BADGES --- */
.badge {
    border-radius: 20px !important;
    padding: 5px 10px !important;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.badge-primary {
    background-color: #2563eb !important;
}

.badge-success {
    background-color: #10b981 !important;
}

.badge-info {
    background-color: #0ea5e9 !important;
}

.badge-warning {
    background-color: #f59e0b !important;
}

.badge-danger {
    background-color: #ef4444 !important;
}

/* --- FORM CONTROLS --- */
.form-control {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px 14px !important;
    height: auto !important;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* --- MODALS --- */
.modal-content {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 24px !important;
    background: #f8fafc;
}

.modal-header .modal-title {
    font-weight: 800;
    font-size: 18px;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 16px 24px !important;
    background: #f8fafc;
}

/* --- NAV TABS --- */
.nav-tabs {
    border-bottom: 1px solid var(--border-color) !important;
    gap: 8px;
}

.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: var(--text-muted) !important;
    font-weight: 600;
    padding: 10px 18px !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.04);
}

.nav-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--primary) !important;
    background: transparent !important;
}

/* --- ALBUMS CARD DESIGN --- */
.album-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    border-radius: var(--radius-md) !important;
}

.album-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-hover) !important;
}

.album-cover-wrap {
    height: 190px !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-card:hover .album-cover-img {
    transform: scale(1.05);
}

.album-badge-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 10px !important;
    border-radius: 20px;
    font-size: 11px;
}

.album-badge-shared {
    position: absolute;
    top: 10px;
    left: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.album-card .product-desc {
    padding: 18px !important;
}

.album-card .product-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 6px;
    display: block;
    line-height: 1.3;
}

.album-card .product-name:hover {
    color: var(--primary) !important;
}

.album-card .product-price {
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    background: #0f172a !important;
    letter-spacing: 0.02em;
}

/* --- PHOTO GALLERY GRID --- */
.foto-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.foto-card {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    border: 1px solid var(--border-color);
}

.foto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.foto-thumb-wrap {
    height: 200px !important;
    position: relative;
    overflow: hidden;
    background: #0f172a !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.foto-card:hover .foto-thumb-img {
    transform: scale(1.06);
}

.foto-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.foto-card:hover .foto-overlay {
    opacity: 1;
}

.foto-overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: scale(0.85);
    transition: all 0.2s ease;
}

.foto-card:hover .foto-overlay-btn {
    transform: scale(1);
}

.foto-overlay-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* --- DROPZONE UPLOAD BOX --- */
.dropzone-box {
    border: 2px dashed #93c5fd !important;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%) !important;
    padding: 36px 24px !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dropzone-box:hover, .dropzone-box.dragover {
    background: #dbeafe !important;
    border-color: #2563eb !important;
    transform: scale(1.005);
}

.dropzone-icon {
    width: 56px;
    height: 56px;
    background: #dbeafe;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* --- FOOTER --- */
.footer {
    background: #fff !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 16px 30px !important;
    color: var(--text-muted);
}
