/* Nekoh Discord - Shared Styles */

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

:root {
    --discord-blurple: #5865F2;
    --discord-dark: #23272A;
    --discord-gray: #2C2F33;
    --discord-light-gray: #99AAB5;
    --discord-white: #FFFFFF;
    --success-green: #3BA55D;
    --danger-red: #ED4245;
    --warning-yellow: #FEE75C;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--discord-dark) 0%, var(--discord-gray) 100%);
    min-height: 100vh;
    color: var(--discord-white);
}

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

/* Header */
header {
    background: rgba(35, 39, 42, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--discord-white);
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--discord-light-gray);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--discord-white);
    background: rgba(255, 255, 255, 0.1);
}

nav a.active {
    color: var(--discord-white);
    background: var(--discord-blurple);
}

/* Cards */
.card {
    background: rgba(44, 47, 51, 0.95);
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: var(--discord-white);
    margin-bottom: 20px;
    font-size: 24px;
}

.card h3 {
    color: var(--discord-white);
    margin: 20px 0 10px 0;
    font-size: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-success {
    background: var(--success-green);
    color: var(--discord-white);
}

.btn-success:hover {
    background: #2D7D46;
}

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

.btn-danger:hover {
    background: #C03537;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--discord-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Form Elements */
input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--discord-white);
    font-size: 16px;
    margin: 8px 0;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--discord-blurple);
}

label {
    display: block;
    color: var(--discord-light-gray);
    margin: 15px 0 5px 0;
    font-weight: 500;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

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

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

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

/* Stats Card */
.stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--discord-blurple);
}

.stat-card.success {
    border-left-color: var(--success-green);
}

.stat-card.danger {
    border-left-color: var(--danger-red);
}

.stat-card.warning {
    border-left-color: var(--warning-yellow);
}

.stat-label {
    color: var(--discord-light-gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--discord-white);
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

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

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--discord-light-gray);
    font-weight: 600;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 15px 0;
}

.alert-success {
    background: rgba(59, 165, 93, 0.2);
    border-left: 4px solid var(--success-green);
    color: var(--success-green);
}

.alert-error {
    background: rgba(237, 66, 69, 0.2);
    border-left: 4px solid var(--danger-red);
    color: var(--danger-red);
}

.alert-warning {
    background: rgba(254, 231, 92, 0.2);
    border-left: 4px solid var(--warning-yellow);
    color: var(--warning-yellow);
}

.alert-info {
    background: rgba(88, 101, 242, 0.2);
    border-left: 4px solid var(--discord-blurple);
    color: var(--discord-blurple);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--discord-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Logs Dashboard Specific Styles */
.filters {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--discord-light-gray);
}

.logs-table-container {
    overflow-x: auto;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.logs-table th {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--discord-light-gray);
    font-weight: 600;
}

.logs-table td {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--discord-white);
}

.logs-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(88, 101, 242, 0.2);
}

.details-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--discord-light-gray);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.pagination button {
    padding: 8px 16px;
    background: var(--discord-blurple);
    color: var(--discord-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination button:not(:disabled):hover {
    background: #4752C4;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .logs-table-container {
        overflow-x: scroll;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-flag {
    background: rgba(254, 231, 92, 0.2);
    color: var(--warning-yellow);
    border: 1px solid var(--warning-yellow);
}

.badge-delete {
    background: rgba(237, 66, 69, 0.2);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.badge-warn {
    background: rgba(235, 69, 158, 0.2);
    color: #EB459E;
    border: 1px solid #EB459E;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

