/* Gifts Bot Admin Panel - Styles */

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

:root {
    --primary-color: #0088cc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-color: #dee2e6;
    
    /* Dashboard specific variables */
    --background: #ffffff;
    --surface: #f8f9fa;
    --surface-hover: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --primary: #0088cc;
    --primary-dark: #006699;
    --success: #28a745;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.login-box h1 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.login-box p {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

#telegram-login-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.login-hint {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Dashboard */
.dashboard h2 {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #006699;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

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

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Forms */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table thead {
    background-color: var(--light-bg);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--dark-text);
}

.data-table tbody tr:hover {
    background-color: var(--light-bg);
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-queued {
    background-color: #ffc107;
    color: #212529;
}

.status-ready {
    background-color: #17a2b8;
    color: white;
}

.status-sending {
    background-color: #007bff;
    color: white;
}

.status-done {
    background-color: #28a745;
    color: white;
}

.status-failed {
    background-color: #dc3545;
    color: white;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Action Cards */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #212529;
}

.action-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0088cc;
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.action-content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.action-arrow {
    font-size: 1.25rem;
    color: #adb5bd;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
}

/* Enhanced Action Card Variants */
.action-card-primary {
    border-left: 4px solid #007bff;
}

.action-card-primary:hover {
    border-left-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.action-card-success {
    border-left: 4px solid #28a745;
}

.action-card-success:hover {
    border-left-color: #1e7e34;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.action-card-warning {
    border-left: 4px solid #ffc107;
}

.action-card-warning:hover {
    border-left-color: #e0a800;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.action-card-info {
    border-left: 4px solid #17a2b8;
}

.action-card-info:hover {
    border-left-color: #138496;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

.action-card-secondary {
    border-left: 4px solid #6c757d;
}

.action-card-secondary:hover {
    border-left-color: #545b62;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.15);
}

.action-card-dark {
    border-left: 4px solid #343a40;
}

.action-card-dark:hover {
    border-left-color: #1d2124;
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.15);
}

/* Standardized Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    box-sizing: border-box;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: #006699;
    border-color: #006699;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.2);
}

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

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(0, 136, 204, 0.1);
    transform: translateY(-1px);
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    border-color: transparent;
    text-decoration: underline;
    padding: 0.25rem 0.5rem;
    min-height: auto;
}

.btn-link:hover:not(:disabled) {
    color: #006699;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Button Sizes */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    min-height: 28px;
}

.btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
}

.btn-icon {
    padding: 0.5rem;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Button Styles */

.btn-success {
    background: var(--success-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
    border: none;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.2);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.btn-dark {
    background: #343a40;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #1d2124;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 58, 64, 0.2);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Focus States */
.btn:focus,
.action-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25);
}

/* Improved Transitions */
.action-card,
.btn,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ads Page Styles */
.ads-page {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.header-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.content-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 1rem;
}

/* Ads Table */
.ads-table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--background);
}

.ads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ads-table thead {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.ads-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-right: 1px solid var(--border-light);
}

.ads-table th:last-child {
    border-right: none;
}

.ads-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    vertical-align: top;
}

.ads-table td:last-child {
    border-right: none;
}

.ads-table tbody tr:hover {
    background: var(--surface-hover);
}

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

/* Table Cell Styles */

.ad-title-cell .ad-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ad-text-cell .ad-text {
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.ad-media-cell .media-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.media-type-badge.none {
    background: var(--surface-hover);
    color: var(--text-secondary);
    text-transform: capitalize;
}

.media-type-badge.photo {
    background: #10b981;
    color: white;
}

.media-type-badge.video {
    background: #3b82f6;
    color: white;
}

.media-type-badge.animation {
    background: #f59e0b;
    color: white;
}

.media-type-badge.link {
    background: #8b5cf6;
    color: white;
}

.ad-buttons-cell .buttons-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.ad-buttons-cell .button-preview {
    display: inline-block;
    background: var(--surface-hover);
    color: var(--text-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

.ad-buttons-cell .no-buttons {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
}

.ad-buttons-cell .button-count {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ad-status-cell .status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: var(--success);
    color: white;
}

.status-done {
    background: var(--success);
    color: white;
}

.status-inactive {
    background: var(--secondary-color);
    color: white;
}

.ad-date-cell .ad-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.ad-actions-cell .action-buttons {
    display: flex;
    gap: 0.25rem;
}

.ad-actions-cell .btn {
    padding: 0.25rem 0.5rem;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-actions-cell .btn svg {
    width: 14px;
    height: 14px;
}

/* Empty State in Table */
.ads-table .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.ads-table .empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ads-table .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ads-table .empty-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ads-table .empty-content p {
    margin: 0;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-state .loading-spinner {
    margin: 0 auto 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-sm .modal-content {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Form Styles */
.form-container {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Buttons Configuration */
.buttons-config {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface);
    margin-top: 0.5rem;
}

.buttons-editor {
    margin-bottom: 1rem;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.button-row:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 136, 204, 0.1);
}

.button-inputs {
    flex: 1;
    display: flex;
    gap: 0.5rem;
}

.button-inputs input {
    flex: 1;
    margin-bottom: 0;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* File Preview */
.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.preview-content img,
.preview-content video {
    max-width: 80px;
    max-height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.preview-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .data-table {
        font-size: 0.875rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-card .action-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    /* Ads Page Responsive */
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .header-actions {
        width: 100%;
    }

    .content-section {
        padding: 1rem;
    }

    .ad-card {
        padding: 1rem;
    }

    .ad-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .ad-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .ad-actions {
        justify-content: flex-end;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .button-inputs {
        flex-direction: column;
    }

    .preview-content {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ads Table Responsive */
    .ads-table-container {
        font-size: 0.8rem;
    }

    .ads-table th,
    .ads-table td {
        padding: 0.75rem 0.5rem;
    }

    .ad-text-cell .ad-text {
        max-width: 150px;
    }

    .ad-actions-cell .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }

    .ad-actions-cell .btn {
        min-width: 24px;
        min-height: 24px;
        padding: 0.2rem 0.4rem;
    }

    .ad-actions-cell .btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .ads-table-container {
        font-size: 0.75rem;
    }

    .ads-table th,
    .ads-table td {
        padding: 0.5rem 0.25rem;
    }

    .ad-text-cell .ad-text {
        max-width: 100px;
    }

    .ad-buttons-cell .button-preview {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
}

