/* ===== Developer Panel Specific Styles ===== */

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.tab-btn.active {
    color: #2777b9;
    background-color: #eff3f8;
    border-bottom-color: #2777b9;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-value {
    color: #333;
    font-size: 28px;
    font-weight: bold;
}

/* Recent Activity */
.recent-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.recent-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #2777b9;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 3px;
}

.activity-meta {
    color: #999;
    font-size: 12px;
}

.activity-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.data-table thead {
    background: #f5f5f5;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

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

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.action-cell {
    display: flex;
    gap: 8px;
}

.icon-btn-small {
    background: none;
    border: none;
    color: #2777b9;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.icon-btn-small:hover {
    background: #eff3f8;
    color: #1e5f8c;
}

/* Settings */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.settings-card.danger {
    border-left: 4px solid #ef4444;
}

.settings-card h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.info-row span {
    color: #666;
}

.info-row strong {
    color: #333;
}

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

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #eff3f8;
    border-color: #2777b9;
    color: #2777b9;
}

.tool-btn i {
    font-size: 20px;
}

.tool-btn.danger-btn {
    background: #fee;
    border-color: #ef4444;
    color: #ef4444;
}

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

/* Responsive */
@media (max-width: 768px) {
    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .tab-btn span {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-btn i {
        font-size: 14px;
    }

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

    .stat-card {
        gap: 15px;
    }

    .recent-section {
        padding: 15px;
    }

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

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-time {
        align-self: flex-end;
    }

    /* Hide certain table columns on mobile */
    .data-table th:nth-child(4),
    .data-table td:nth-child(4) {
        display: none;
    }
}
