@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --danger-color: #ef4444;
    --success-color: #10b981;
    --input-bg: rgba(15, 23, 42, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.3) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.3) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 50px;
    margin-bottom: 30px;
}

h1, h2, h3 {
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #e2e8f0;
    font-size: 1.05rem;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    background: var(--input-bg);
    border: 1px dashed var(--text-muted);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Sample Image display */
.sample-container {
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sample-container p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.5;
}

.sample-img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Admin Dashboard Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--input-bg);
}

table th, table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: #cbd5e1;
}

table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.admin-nav h2 {
    margin-bottom: 0;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.admin-nav a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}

.thumb:hover {
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.upload-options {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}
.upload-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: var(--input-bg);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #cbd5e1;
    font-size: 0.95rem;
}
.upload-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    color: white;
}
.upload-btn svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    stroke: currentColor;
}
.hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.file-name-display {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--success-color);
    display: none;
}
@media (max-width: 600px) {
    .upload-options {
        flex-direction: row;
    }
}
