/* Page Layout & Header */
.dashboard-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--admin-card-shadow);
    border: 1px solid #eef2f6;
}

.header-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--admin-primary);
}

.breadcrumb-item.active {
    color: #94a3b8;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #cbd5e1;
    margin-right: 0.5rem;
}

/* Search & Filters */
.campaigns-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--admin-card-shadow);
    border: 1px solid #eef2f6;
    overflow: hidden;
}

.search-bar-wrapper {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    position: relative;
    min-width: 250px;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

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

.filter-select {
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background: #f8fafc;
}

.campaign-title-cell {
    display: flex;
    flex-direction: column;
}

.campaign-title-cell strong {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 2px;
}

.campaign-title-cell small {
    color: #64748b;
    font-size: 0.85rem;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-cell {
    display: flex;
    flex-direction: column;
}

.client-cell strong {
    font-weight: 500;
    color: #334155;
}

.client-cell small {
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-cell small {
    color: #64748b;
    font-size: 0.8rem;
}

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.badge-draft {
    background: #fff7ed;
    color: #9a3412;
}

.badge-primary {
    background: #e0f2fe;
    color: #0284c7;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-icon.details:hover {
    background: #e0f2fe;
    color: #0284c7;
}

.btn-icon.edit:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.btn-icon.delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Status Button */
.btn-status {
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}

.btn-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-status:active {
    transform: translateY(0);
}

/* Stats */
.stat-value {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

/* --- DETAILS PAGE STYLES --- */
.details-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--admin-card-shadow);
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

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

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-wrapper.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon-wrapper.green { background: #dcfce7; color: #16a34a; }
.stat-icon-wrapper.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon-wrapper.orange { background: #ffedd5; color: #ea580c; }

.stat-content h4 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.stat-content .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.details-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

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

.details-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--admin-card-shadow);
    border: 1px solid #eef2f6;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
    padding-top: 0;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-label i {
    color: #94a3b8;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Products Grid in Details */
.products-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.mini-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-product-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Image Wrapper */
.mini-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mini-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s;
}

.mini-product-card:hover .mini-product-image {
    transform: scale(1.05);
}

.mini-product-placeholder {
    font-size: 3rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Price Badge */
.product-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

/* Details Section */
.mini-product-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-product-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec-item i {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Sizes */
.mini-product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0.25rem;
}

.size-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Copy Button Enhancement */
.copy-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    font-size: 0.8rem;
}
.copy-btn:hover {
    background: #e2e8f0;
    color: #0f172a; /* Darker text on hover */
    transform: scale(1.1);
    border-color: #cbd5e1;
}
.copy-btn:active {
    transform: scale(0.95);
}

/* Quick Actions Tiles */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.action-tile-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 0.95rem;
}
.action-tile-btn i {
    font-size: 1.1rem;
    color: #0f172a; /* Default icon color */
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
/* Specific colors for actions */
.action-tile-btn.excel:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}
.action-tile-btn.excel:hover i {
    background: #16a34a;
    color: #fff;
}

.action-tile-btn.share:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    color: #075985;
}
.action-tile-btn.share:hover i {
    background: #0284c7;
    color: #fff;
}

/* --- NEW MODERN DATA GRID LAYOUT --- */
.details-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .details-data-grid {
        grid-template-columns: 1fr;
    }
}

.data-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.data-item:hover {
    background-color: #f8fafc;
}

.data-item.full-width {
    grid-column: 1 / -1;
}

.data-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.data-item:hover .data-icon {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: var(--admin-primary);
}

.data-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.data-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 0;
}

.data-value {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-word;
}

/* Specialized Icons */
.data-icon.purple { background: #f3e8ff; color: #9333ea; }
.data-icon.blue { background: #e0f2fe; color: #0284c7; }
.data-icon.green { background: #dcfce7; color: #16a34a; }
.data-icon.orange { background: #ffedd5; color: #ea580c; }
.data-icon.pink { background: #fce7f3; color: #db2777; }

.data-item:hover .data-icon.purple { background: #9333ea; color: #fff; }
.data-item:hover .data-icon.blue { background: #0284c7; color: #fff; }
.data-item:hover .data-icon.green { background: #16a34a; color: #fff; }
.data-item:hover .data-icon.orange { background: #ea580c; color: #fff; }
.data-item:hover .data-icon.pink { background: #db2777; color: #fff; }

/* --- PROFILE PAGE STYLES --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    
    .profile-form-container {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.profile-form-container .card-body {
    padding-top: 1.5rem;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.avatar-info {
    text-align: center;
}

.avatar-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-with-icon .form-control {
    padding-left: 2.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    color: #1e293b;
}

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

.form-control:disabled, .form-control[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.btn-primary-action {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-size: 1rem;
}

.btn-primary-action:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary-action:active {
    transform: translateY(0);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.page-header {
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 1.75rem;
    color: #1e293b;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
}

.header-content p {
    color: #64748b;
    margin: 0;
}

.full-width {
    grid-column: 1 / -1;
    width: 100%;
}
