/* style.css - Gold Neon Futuristic Design */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --gold-dark: #B8860B;
    --gold-glow: 0 0 10px #FFD700, 0 0 20px #FFA500, 0 0 40px #FFD700;
    --gold-glow-intense: 0 0 15px #FFD700, 0 0 30px #FFA500, 0 0 60px #FFD700, 0 0 80px #FFA500;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-input: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --border-gold: 1px solid rgba(255, 215, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 80%, rgba(184, 134, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background Particles (CSS Only) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 165, 0, 0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 165, 0, 0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 215, 0, 0.3), transparent);
    background-size: 200px 200px;
    animation: sparkles 20s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes sparkles {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-200px) rotate(360deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    box-shadow: var(--gold-glow);
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary), var(--gold-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    text-shadow: var(--gold-glow);
    margin-bottom: 10px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: var(--border-gold);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow-intense);
    transform: translateY(-2px);
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '⚡';
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
    background: rgba(26, 26, 37, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-secondary));
    color: #000;
    border: none;
    padding: 14px 32px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-glow-intense);
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #8b0000, #dc143c);
}

.btn-danger:hover {
    box-shadow: 0 0 15px #dc143c, 0 0 30px #8b0000;
}

/* Result Box */
.result-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.short-url {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--gold-primary);
    text-shadow: var(--gold-glow);
    margin: 10px 0;
    word-break: break-all;
}

.copy-btn {
    background: var(--gold-primary);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--gold-secondary);
    box-shadow: var(--gold-glow);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-secondary));
    color: #000;
    font-family: 'Orbitron', monospace;
    padding: 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: var(--text-secondary);
}

tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
    border: 1px solid #00c853;
}

.status-expired {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border: 1px solid #ff5252;
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.action-btn.edit {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.action-btn.delete {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.action-btn:hover {
    transform: scale(1.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--bg-card);
    border: var(--border-gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--gold-primary);
    text-shadow: var(--gold-glow);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search & Filter */
.search-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination button {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: 40px;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    text-shadow: var(--gold-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .action-btns {
        flex-direction: column;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: var(--gold-glow);
    z-index: 1000;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    border-left: 4px solid #00c853;
}

.toast.error {
    border-left: 4px solid #ff5252;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100px); }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-primary);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--gold-glow-intense);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-title {
    font-family: 'Orbitron', monospace;
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold-primary);
    transform: rotate(90deg);
}