/* Admin Panel Styles */
:root {
    --primary-color: #00FFFF;
    --primary-dark: #00CCCC;
    --bg-color: #0D0D0D;
    --bg-light: #151515;
    --bg-lighter: #1A1A1A;
    --text-color: #FFFFFF;
    --text-muted: #B3FFFF;
    --danger-color: #FF4136;
    --success-color: #2ECC40;
    --border-radius: 8px;
    --shadow: 0 5px 15px rgba(0, 255, 255, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% -20%, rgba(0, 255, 255, 0.1), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Admin Layout */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    background-color: var(--bg-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.admin-logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-shadow: 0 0 5px var(--primary-color);
    font-family: 'Press Start 2P', cursive;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.admin-nav li {
    position: relative;
}

.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.admin-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.admin-nav a:hover {
    color: var(--primary-color);
}

.admin-nav a:hover::after {
    width: 100%;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.admin-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.admin-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.admin-footer {
    background-color: var(--bg-light);
    padding: 1rem 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -10%;
    right: -10%;
    height: 20px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.2;
    border-radius: 50%;
}

.admin-footer p {
    position: relative;
    z-index: 1;
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

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

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.login-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(0, 204, 204, 0.3);
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

button:hover::before {
    left: 100%;
}

.error, .success {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
    position: relative;
}

.error {
    color: var(--danger-color);
    background-color: rgba(255, 65, 54, 0.1);
    border-left: 3px solid var(--danger-color);
}

.success {
    color: var(--success-color);
    background-color: rgba(46, 204, 64, 0.1);
    border-left: 3px solid var(--success-color);
}

/* Dashboard Styles */
.dashboard-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
}

.dashboard-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Table Styles */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.admin-table th {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.admin-table tr {
    background-color: var(--bg-light);
    transition: var(--transition);
}

.admin-table tr:nth-child(even) {
    background-color: rgba(26, 26, 26, 0.5);
}

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

.admin-table td {
    vertical-align: middle;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Portfolio form */
.portfolio-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.portfolio-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Action buttons */
.action-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-view {
    background-color: rgba(0, 204, 204, 0.2);
    color: var(--primary-color);
    border-color: rgba(0, 204, 204, 0.3);
}

.btn-view:hover {
    background-color: rgba(0, 204, 204, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.btn-edit {
    background-color: rgba(61, 153, 112, 0.2);
    color: #3D9970;
    border-color: rgba(61, 153, 112, 0.3);
}

.btn-edit:hover {
    background-color: rgba(61, 153, 112, 0.3);
    box-shadow: 0 0 8px rgba(61, 153, 112, 0.3);
}

.btn-delete {
    background-color: rgba(255, 65, 54, 0.2);
    color: var(--danger-color);
    border-color: rgba(255, 65, 54, 0.3);
}

.btn-delete:hover {
    background-color: rgba(255, 65, 54, 0.3);
    box-shadow: 0 0 8px rgba(255, 65, 54, 0.3);
}

.btn-add {
    background-color: var(--primary-color);
    color: var(--bg-color);
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-back {
    background-color: rgba(13, 13, 13, 0.7);
    color: var(--text-muted);
    border: 1px solid rgba(0, 255, 255, 0.3);
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    margin-right: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(13, 13, 13, 0.9);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Image preview */
#image-preview {
    border-radius: var(--border-radius);
    border: 2px dashed rgba(0, 255, 255, 0.2);
    transition: var(--transition);
}

#image-preview:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .admin-logo {
        margin-bottom: 1rem;
    }
    
    .admin-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-nav li {
        margin: 0.5rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-back, 
    .form-actions button {
        width: 100%;
        text-align: center;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .action-btn {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}
