/* assets/css/style.css - Enhanced Dark Theme */
:root {
    --primary-color: #8e24aa;
    --primary-light: #b085f5;
    --primary-dark: #5c007a;
    --secondary-color: #1e88e5;
    --secondary-light: #6ab7ff;
    --secondary-dark: #005cb2;
    --success-color: #00c853;
    --success-dark: #009624;
    --danger-color: #ff3d00;
    --danger-dark: #c30000;
    --warning-color: #ffd600;
    --warning-dark: #c7a500;
    --info-color: #00b0ff;
    --info-dark: #0081cb;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --card-bg-hover: #252525;
    --input-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #757575;
    --border-color: #333333;
    --border-focus: #616161;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(45deg, var(--secondary-color), var(--secondary-dark));
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image: radial-gradient(
        circle at top right,
        rgba(142, 36, 170, 0.05),
        transparent 70%
    );
}

/* Subtle background pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-light);
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(142, 36, 170, 0.4));
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
    border-radius: 2px;
}

nav ul li a:hover {
    color: var(--text-primary);
}

nav ul li a:hover::after {
    width: 100%;
}

.premium-link {
    color: var(--warning-color);
    font-weight: bold;
}

.admin-link {
    color: var(--danger-color);
    font-weight: bold;
}

main {
    flex: 1;
    padding: 20px 0;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(142, 36, 170, 0.2);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s, left 0.3s;
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
    left: 0;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 36, 170, 0.3);
}

.btn:active {
    transform: translateY(1px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.3);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(255, 61, 0, 0.3);
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212121;
}

.btn-warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.3);
}

.btn-info {
    background-color: var(--info-color);
}

.btn-info:focus {
    box-shadow: 0 0 0 3px rgba(0, 176, 255, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.alert::before {
    font-family: sans-serif;
    margin-right: 10px;
    font-weight: bold;
    font-size: 18px;
}

.alert-success {
    background-color: rgba(0, 200, 83, 0.1);
    border-color: var(--success-color);
    color: #81c784;
}

.alert-success::before {
    content: "✓";
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(255, 61, 0, 0.1);
    border-color: var(--danger-color);
    color: #ff8a65;
}

.alert-danger::before {
    content: "✕";
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 214, 0, 0.1);
    border-color: var(--warning-color);
    color: #ffd54f;
}

.alert-warning::before {
    content: "!";
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(0, 176, 255, 0.1);
    border-color: var(--info-color);
    color: #4fc3f7;
}

.alert-info::before {
    content: "i";
    color: var(--info-color);
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    background-color: var(--card-bg-hover);
}

.card-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.card-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.card-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.card-content {
    color: var(--text-secondary);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 8px;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Signal Generator Styles */
.signal-container {
    max-width: 600px;
    margin: 0 auto;
}

.result-box {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.result-label {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-value {
    font-size: 64px;
    font-weight: bold;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(142, 36, 170, 0.3);
    margin-bottom: 10px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.result-value::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.signal-form {
    margin-bottom: 30px;
}

.signal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.signal-count {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 16px;
    background-color: rgba(255, 214, 0, 0.05);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 214, 0, 0.2);
}

.signal-count span {
    color: var(--warning-color);
    font-weight: bold;
}

/* Countdown timer styles */
.countdown-timer {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-secondary);
    background-color: rgba(142, 36, 170, 0.05);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(142, 36, 170, 0.2);
}

.timer-value {
    font-weight: bold;
    color: var(--primary-light);
    font-size: 24px;
    display: block;
    margin-top: 5px;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination a {
    text-decoration: none;
    border-radius: 4px;
}

/* Animation for alerts */
@keyframes slideIn {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideIn 0.3s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    header::after {
        width: 80px;
    }
    
    nav {
        margin-top: 20px;
        width: 100%;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .signal-actions {
        flex-direction: column;
    }
    
    .result-value {
        font-size: 48px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}