/*
 * Standalone Mangata Portal System - Dark Material 3 Palette Stylesheet
 * Custom Premium Obsidian Gaming/Manga Theme (Asura Scans Inspired)
 */

body {
    background-color: #0c0a0f;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 77, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(3, 218, 198, 0.03) 0%, transparent 40%);
    color: #e2dff0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c0a0f;
}
::-webkit-scrollbar-thumb {
    background: #7c4dff;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff7597;
}

header {
    background: rgba(18, 16, 22, 0.85);
    border-bottom: 2px solid rgba(124,77,255,0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

header h1 {
    margin: 0;
}

header h1 a {
    color: #ff7597;
    text-shadow: 0 0 10px rgba(255,117,151,0.3);
    text-decoration: none;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

header nav a {
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #e2dff0;
}

header nav a:hover {
    color: #ff7597 !important;
    text-shadow: 0 0 5px rgba(255,117,151,0.5);
}

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

.card {
    background: rgba(20, 18, 24, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(124,77,255,0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    border-color: rgba(255,117,151,0.25);
    box-shadow: 0 8px 32px rgba(124,77,255,0.15);
}

.card h2 {
    color: #ff7597;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 800;
}

.btn {
    background: linear-gradient(135deg, #6200ee, #7c4dff);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(124,77,255,0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #7c4dff, #ff7597);
    box-shadow: 0 4px 20px rgba(255,117,151,0.4);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: none;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #141218;
    color: #fff;
    border: 1px solid rgba(124,77,255,0.15);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff7597;
    background: #1a1622;
    box-shadow: 0 0 10px rgba(255,117,151,0.25);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
    background: rgba(18, 16, 22, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(124,77,255,0.15);
}

table th, table td {
    padding: 14px;
    border: 1px solid rgba(124,77,255,0.08);
    text-align: right;
}

table th {
    background-color: rgba(124,77,255,0.15);
    color: #ff7597;
    font-weight: 800;
    font-size: 13px;
}

table tr:nth-child(even) {
    background-color: rgba(124,77,255,0.02);
}

table tr:hover {
    background-color: rgba(124,77,255,0.05);
}

.success-message {
    background: rgba(27, 94, 32, 0.4);
    border-right: 5px solid #4caf50;
    backdrop-filter: blur(8px);
    color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    border-left: 1px solid rgba(76,175,80,0.2);
    border-top: 1px solid rgba(76,175,80,0.2);
    border-bottom: 1px solid rgba(76,175,80,0.2);
}

.error-message {
    background: rgba(183, 28, 28, 0.4);
    border-right: 5px solid #f44336;
    backdrop-filter: blur(8px);
    color: #ffebee;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    border-left: 1px solid rgba(244,67,54,0.2);
    border-top: 1px solid rgba(244,67,54,0.2);
    border-bottom: 1px solid rgba(244,67,54,0.2);
}

.font-bold {
    font-weight: bold;
}
