/* ====================================
   Admin Panel Styles
   ==================================== */

/* Score Management Styles */
.score-placeholder {
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Enhanced Mobile Optimization */
.admin-mobile-optimized {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--gray-200);
    background: #ffffff !important;
}

/* Force dark text on all mobile devices */
@media screen and (max-width: 768px) {
    body, html {
        -webkit-text-size-adjust: 100% !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
}

.admin-mobile-optimized::-webkit-scrollbar {
    height: 6px;
}

.admin-mobile-optimized::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: var(--radius-full);
}

.admin-mobile-optimized::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: var(--radius-full);
}

/* Mobile Table Fixes */
@media (max-width: 768px) {
    .admin-mobile-optimized {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin: var(--space-2) 0;
        background: #ffffff !important;
    }
    
    .data-table {
        font-size: var(--text-sm);
        min-width: 1000px; /* Increased for better content display */
        border-radius: 0;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
        color: #000000 !important; /* Pure black text for maximum contrast */
        background: #ffffff !important; /* Force white background */
        font-weight: 700 !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Specific column widths for mobile */
    .data-table th:nth-child(1), /* Avatar */
    .data-table td:nth-child(1) {
        width: 80px;
        min-width: 80px;
    }
    
    .data-table th:nth-child(2), /* Name */
    .data-table td:nth-child(2) {
        width: 200px;
        min-width: 200px;
        white-space: normal !important;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    .data-table th:nth-child(3), /* License */
    .data-table td:nth-child(3) {
        width: 120px;
        min-width: 120px;
        white-space: normal !important;
    }
    
    .data-table th:nth-child(4), /* Email */
    .data-table td:nth-child(4) {
        width: 180px;
        min-width: 180px;
        white-space: normal !important;
        word-break: break-all;
        font-size: var(--text-xs);
    }
    
    .data-table th:nth-child(5), /* Phone */
    .data-table td:nth-child(5) {
        width: 120px;
        min-width: 120px;
        white-space: normal !important;
    }
    
    .data-table th:nth-child(6), /* Level */
    .data-table td:nth-child(6) {
        width: 100px;
        min-width: 100px;
    }
    
    .data-table th:nth-child(7), /* Matches */
    .data-table td:nth-child(7) {
        width: 80px;
        min-width: 80px;
        text-align: center;
    }
    
    .data-table th:last-child,
    .data-table td:last-child {
        position: sticky;
        right: 0;
        background: #ffffff !important;
        box-shadow: -3px 0 6px rgba(0,0,0,0.1);
        z-index: 10;
        border-left: 2px solid var(--gray-300);
        width: 140px;
        min-width: 140px;
    }
    
    .data-table th:last-child {
        background: #f7fafc !important;
        color: #000000 !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .data-table th {
        background: #f7fafc !important;
        color: #000000 !important;
        font-weight: 800 !important;
        border-bottom: 2px solid #e2e8f0;
        position: sticky;
        top: 0;
        z-index: 10;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .data-table tbody tr {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .data-table tbody tr:nth-child(even) {
        background: #f8fafc !important;
        color: #000000 !important;
    }
    
    .data-table tbody tr:hover {
        background: rgba(16, 185, 129, 0.05) !important;
        color: #000000 !important;
    }
    
    .data-table tbody tr td {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .table-actions-cell {
        min-width: 140px;
        justify-content: space-around;
        gap: var(--space-1);
        background: inherit !important;
    }
    
    .table-actions-cell .btn-sm {
        padding: var(--space-1);
        min-width: 32px;
        min-height: 32px;
        font-size: var(--text-xs);
    }
    
    .table-actions-cell .btn-sm span {
        display: none; /* Hide text on mobile, show only icons */
    }
    
    /* Mobile badge styles */
    .level-badge,
    .status-badge,
    .stat-badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
        background: #059669 !important;
        color: #ffffff !important;
        font-weight: 700;
        border: 1px solid #047857;
        text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    }
    
    /* Mobile text improvements */
    .data-table strong {
        font-size: var(--text-sm) !important;
        line-height: 1.3;
        color: #000000 !important;
        font-weight: 800 !important;
        display: block;
        margin-bottom: 2px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .data-table small {
        font-size: var(--text-xs) !important;
        line-height: 1.2;
        color: #1a202c !important;
        display: block;
        font-weight: 600 !important;
        text-shadow: 0 1px 1px rgba(0,0,0,0.2) !important;
    }
    
    /* Avatar improvements */
    .avatar-circle {
        width: 40px !important;
        height: 40px !important;
        background: #10b981 !important;
        color: #ffffff !important;
        font-size: var(--text-sm) !important;
        font-weight: 600;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .admin-content {
        padding: var(--space-2);
    }
    
    .table-header {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .table-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .data-table {
        min-width: 700px;
    }
    
    .table-actions-cell .btn-sm {
        min-width: 28px;
        min-height: 28px;
        padding: var(--space-1);
    }
    
    /* Mobile stats improvements */
    .stats-summary h3 {
        font-size: 1.1rem !important;
        color: #000000 !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .level-stat h4 {
        color: #000000 !important;
        font-weight: 800 !important;
        font-size: 0.9rem !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    }
    
    .level-stat .count {
        color: #047857 !important;
        font-weight: 900 !important;
        font-size: 1.8rem !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
    }
    
    /* All text on mobile should be bold and dark */
    * {
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .admin-content * {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    
    .admin-content .data-table * {
        color: #000000 !important;
        font-weight: 700 !important;
    }
}

.admin-header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-bottom: 1px solid #424242;
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.admin-header h1 {
    color: #ffffff;
}

.admin-header .app-title {
    color: #ffffff;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions .btn-secondary,
.admin-actions .btn-danger {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.btn-danger {
    background: #e74c3c;
    color: var(--white);
    border: 2px solid #e74c3c;
}

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

.admin-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
    background: #212121;
    color: #ffffff;
    min-height: 100vh;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.teams { background: var(--primary-green); }
.stat-icon.matches { background: #3498db; }
.stat-icon.live { background: #e74c3c; }
.stat-icon.news { background: #f39c12; }
.stat-icon.referees { background: #9b59b6; }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.stat-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.stat-link:hover {
    color: var(--primary-green);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-green);
}

.action-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.action-card span {
    font-weight: 600;
}

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

.activity-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.activity-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    background: var(--light-gray);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.activity-status {
    text-align: right;
}

.activity-status .status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.activity-status .views {
    font-size: 0.8rem;
    color: var(--text-light);
}

.no-data {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
}

/* Management Menu */
.management-menu {
    margin-bottom: 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.menu-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border-left: 4px solid var(--primary-green);
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.menu-item i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.menu-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.menu-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Admin Forms - Dark Theme */
.admin-form {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid #424242;
    margin-bottom: 2rem;
    color: #ffffff;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #424242;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #2a2a2a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background: #333333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select option {
    background: #2a2a2a;
    color: #ffffff;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #424242;
}

.form-section h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Tables */
.admin-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-content {
    padding: 1rem;
    background: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.data-table th:last-child,
.data-table td:last-child {
    text-align: center;
    width: 180px;
    min-width: 180px;
}

.data-table th {
    font-weight: 700;
    color: #000000;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.data-table tbody tr {
    background: #ffffff;
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.data-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table td {
    color: #000000;
    font-weight: 600;
    background: inherit;
}

.data-table strong {
    color: #000000;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.data-table small {
    color: #2d3748;
    font-weight: 500;
}

.table-actions-cell {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-width: 180px;
    padding: var(--space-2);
    background: inherit;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 60px;
    min-height: 36px;
    white-space: nowrap;
    outline: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-sm);
}

.btn-sm:focus {
    outline: 2px solid rgba(52, 152, 219, 0.5);
    outline-offset: 2px;
}

.btn-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-edit {
    background: var(--info-blue);
    color: var(--text-inverse);
    border-color: var(--info-blue);
}

.btn-edit:hover {
    background: #2563EB;
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-delete {
    background: var(--live-red);
    color: var(--text-inverse);
    border-color: var(--live-red);
}

.btn-delete:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-call {
    background: var(--success-green);
    color: var(--text-inverse);
    border-color: var(--success-green);
}

.btn-call:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: #f39c12;
    color: var(--white);
    border: 1px solid #e67e22;
}

.btn-warning:hover {
    background: #e67e22;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

/* ====================================
   Responsive Design - Mobile First Admin
   ==================================== */

/* Large tablets and small desktops */
@media (max-width: 992px) {
    .admin-header {
        padding: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .admin-header {
        padding: 0.75rem;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-header .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-content {
        padding: 0.75rem;
        padding-bottom: 90px;
        background: #212121;
    }
    
    .page-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .action-card {
        padding: 1rem;
        text-align: center;
    }
    
    .action-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .action-title {
        font-size: 0.9rem;
    }
    
    .recent-activity {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .menu-item {
        padding: 1rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
        color: #ffffff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
        background: #2a2a2a;
        color: #ffffff;
        border: 1px solid #424242;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #b0b0b0;
    }
    
    .data-table {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.375rem;
        white-space: nowrap;
    }
    
    .table-actions-cell {
        flex-direction: row;
        gap: 0.25rem;
        min-width: auto;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0.25rem;
    }
    
    .btn, .btn-primary, .btn-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        gap: 0;
    }
    
    .btn-sm span {
        display: none; /* Mobile'da buton metinlerini gizle */
    }
    
    .btn-sm i {
        margin: 0; /* İkon için margin sıfırla */
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
}

/* Large mobile devices */
@media (max-width: 576px) {
    .admin-header {
        padding: 0.5rem;
    }
    
    .admin-header h1 {
        font-size: 1.2rem;
    }
    
    .admin-content {
        padding: 0.5rem;
        padding-bottom: 85px;
        background: #212121;
    }
    
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .action-card {
        padding: 0.875rem;
        min-height: 80px;
    }
    
    .action-icon {
        font-size: 1.75rem;
        margin-bottom: 0.375rem;
    }
    
    .action-title {
        font-size: 0.85rem;
    }
    
    .menu-grid {
        gap: 0.5rem;
    }
    
    .menu-item {
        padding: 0.875rem;
        min-height: 70px;
    }
    
    .menu-icon {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }
    
    .menu-title {
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        color: #ffffff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        background: #2a2a2a;
        color: #ffffff;
        border: 1px solid #424242;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #b0b0b0;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.375rem 0.25rem;
    }
    
    .btn, .btn-primary, .btn-secondary {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
        min-width: 35px;
        min-height: 30px;
    }
    
    .card {
        padding: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .card-header {
        padding: 0.75rem;
        margin: -0.875rem -0.875rem 0.875rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .admin-header {
        padding: 0.375rem;
    }
    
    .admin-header h1 {
        font-size: 1.1rem;
    }
    
    .admin-content {
        padding: 0.375rem;
        padding-bottom: 80px;
        background: #212121;
    }
    
    .page-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-grid {
        gap: 0.375rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .actions-grid {
        gap: 0.375rem;
    }
    
    .action-card {
        padding: 0.75rem;
        min-height: 75px;
    }
    
    .action-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .action-title {
        font-size: 0.8rem;
    }
    
    .menu-grid {
        gap: 0.375rem;
    }
    
    .menu-item {
        padding: 0.75rem;
        min-height: 65px;
    }
    
    .menu-icon {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    .menu-title {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        color: #ffffff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 16px;
        background: #2a2a2a;
        color: #ffffff;
        border: 1px solid #424242;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #b0b0b0;
    }
    
    .data-table {
        font-size: 0.7rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.25rem 0.125rem;
    }
    
    .table-actions-cell {
        gap: 0.125rem;
    }
    
    .btn, .btn-primary, .btn-secondary {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
        min-width: 30px;
        min-height: 28px;
    }
    
    .card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .card-header {
        padding: 0.625rem;
        margin: -0.75rem -0.75rem 0.75rem;
    }
    
    .breadcrumb-item {
        font-size: 0.7rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .admin-header {
        padding: 0.25rem;
    }
    
    .admin-header h1 {
        font-size: 1rem;
    }
    
    .admin-content {
        padding: 0.25rem;
        padding-bottom: 75px;
        background: #212121;
    }
    
    .page-title {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
    }
    
    .stats-grid {
        gap: 0.25rem;
    }
    
    .stat-card {
        padding: 0.625rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .actions-grid {
        gap: 0.25rem;
    }
    
    .action-card {
        padding: 0.625rem;
        min-height: 70px;
    }
    
    .action-icon {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .action-title {
        font-size: 0.75rem;
    }
    
    .menu-item {
        padding: 0.625rem;
        min-height: 60px;
    }
    
    .menu-icon {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .menu-title {
        font-size: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.625rem;
    }
    
    .form-group label {
        color: #ffffff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.375rem;
        background: #2a2a2a;
        color: #ffffff;
        border: 1px solid #424242;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #b0b0b0;
    }
    
    .data-table {
        font-size: 0.65rem;
    }
    
    .btn, .btn-primary, .btn-secondary {
        padding: 0.25rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .btn-sm {
        font-size: 0.55rem;
        padding: 0.15rem 0.25rem;
        min-width: 28px;
        min-height: 26px;
    }
    
    .card {
        padding: 0.625rem;
        margin-bottom: 0.625rem;
    }
}

/* ====================================
   Data Officer Styles
   ==================================== */

.stat-icon.data-officers {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.data-officer-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #8b5cf6;
    transition: all 0.3s ease;
}

.data-officer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.data-officer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.data-officer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.data-officer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.data-officer-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.data-officer-details p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.data-officer-actions {
    display: flex;
    gap: 0.5rem;
}

.data-officer-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.data-officer-status.active {
    background: #dcfce7;
    color: #166534;
}

.data-officer-status.inactive {
    background: #fef2f2;
    color: #dc2626;
}

.data-officer-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.meta-item i {
    color: #8b5cf6;
    width: 16px;
}

.meta-item a {
    color: #3b82f6;
    text-decoration: none;
}

.meta-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .data-officer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .data-officer-info {
        width: 100%;
    }

    .data-officer-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .data-officer-meta {
        grid-template-columns: 1fr;
    }
}

/* Admin dashboard — tüm takımlar toplu oyuncu kutusu (yedek; asıl stiller dashboard.ejs içinde) */
.admin-content .dash-bulk-mount {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ana sayfa duyuruları — admin dashboard */
.dash-announce-section {
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem 1.35rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.dash-announce-form {
    margin-top: 1rem;
}

.dash-announce-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.dash-announce-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 2.75rem;
    box-sizing: border-box;
}

.dash-announce-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.dash-announce-select {
    min-width: 160px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}

.dash-announce-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}

.dash-announce-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.92rem;
}

.dash-announce-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 1.1rem 0 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.dash-announce-list-item--card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 0;
}

.dash-announce-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.dash-announce-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.dash-announce-edit-form {
    width: 100%;
    margin: 0;
    padding-top: 0.15rem;
}

.dash-announce-edit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dash-announce-save {
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .dash-announce-card-actions {
        margin-left: 0;
        width: 100%;
    }
}

.dash-announce-preview {
    color: #059669;
    width: 1.5rem;
    text-align: center;
}

.dash-announce-msg {
    flex: 1;
    min-width: 120px;
    color: #111827;
}

.dash-announce-meta {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.dash-announce-meta.is-on {
    background: #d1fae5;
    color: #065f46;
}

.dash-announce-meta.is-off {
    background: #f3f4f6;
    color: #6b7280;
}

.dash-announce-inline {
    display: inline;
    margin: 0;
}

.dash-announce-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    color: #374151;
}

.dash-announce-btn:hover {
    background: #f9fafb;
}

.dash-announce-btn--danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.dash-announce-btn--danger:hover {
    background: #fef2f2;
}

.dash-announce-empty {
    margin: 1rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .dash-announce-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dash-announce-row .dash-bulk-btn {
        width: 100%;
    }
}

