/* Reset & Base Styles */
:root {
    --primary: #2efbea;
    --primary-dark: #1cc7b8;
    --secondary: #ff6b9d;
    --accent: #9d4edd;
    --background: #0a1720;
    --surface: #121f2a;
    --surface-light: #1a2735;
    --surface-dark: #0d151f;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --border: #2d3748;
    --success: #10b981;
    --hypertext: #ff9333;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(135deg, var(--background) 0%, #0f1a26 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Links */
a {
    color: #4fa2eb;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
}

a:hover {
    color: white;
    background: linear-gradient(90deg, transparent, rgba(46, 251, 234, 0.1), transparent);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
}

/* Header */
header {
    background: rgba(18, 31, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 251, 234, 0.1);
    border-radius: var(--radius);
    margin: 1rem;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: none;
}

.logo img {
    filter: drop-shadow(0 0 10px rgba(46, 251, 234, 0.3));
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(46, 251, 234, 0.5));
}

.account-actions {
    text-align: right;
    font-weight: 500;
}

.balance {
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(46, 251, 234, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* Main Layout */
main {
    display: flex;
    flex-grow: 1;
    gap: 1.5rem;
    margin: 1rem;
    animation: fadeIn 0.6s ease;
}

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

/* Sidebar */
.sidebar {
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Blocks */
.block {
    background: rgba(26, 39, 53, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.block:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 251, 234, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navigation ul {
    list-style: none;
}

.navigation li {
    margin-bottom: 0.5rem;
    position: relative;
}

.navigation a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navigation a:hover {
    background: linear-gradient(90deg, rgba(46, 251, 234, 0.1), rgba(157, 78, 221, 0.1));
    padding-left: 1.5rem;
}

/* Content */
.content {
    flex: 1;
    background: rgba(18, 31, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2rem;
    overflow-wrap: anywhere;
}

.content_view {
    color: var(--text);
}

.content_view .red { color: var(--error); }
.content_view .green { color: var(--success); }
.content_view .blue { color: var(--primary); }

.hypertext { color: var(--hypertext);}

/* Buttons */
button, .button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 251, 234, 0.2);
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 251, 234, 0.3);
}

.selected_button {
    background: linear-gradient(135deg, var(--success), #0ca678);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Profile Cards */
.profile-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2px;
    display: inline-block;
}

.profile-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(10px);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(46, 251, 234, 0.3);
}

/* Messages */
.message { color: var(--warning); }
.success { color: var(--success); }
.error { color: var(--error); }

/* Images & Media */
.content-img, .content-video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Notification */
#notification {
    position: fixed;
    left: 50%;
    top: 2.5em;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: rgba(18, 31, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    max-width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Footer */
footer {
    background: rgba(0, 12, 39, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(46, 251, 234, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

tr:hover td {
    background: rgba(46, 251, 234, 0.05);
}

/* Progress Bar */
progress {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--surface-light);
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: var(--surface-light);
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }
    
    .sidebar {
        max-width: 100%;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--accent));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-dark), #8a3fd6);
}