:root { --primary: #0F0F0F; --accent: #185ADB; --bg: #F9F9F9; --white: #FFFFFF; --danger: #DC3545; --text: #333; }
body { font-family: 'Segoe UI', sans-serif; margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Buttons */
.btn { padding: 12px 24px; border: none; cursor: pointer; border-radius: 5px; font-weight: bold; text-decoration: none; display: inline-block; transition: 0.3s; color: white; }
.btn-primary { background: var(--accent); } .btn-primary:hover { background: #1243a6; }
.btn-secondary { background: #ddd; color: #333; cursor: not-allowed; }
.btn-danger { background: white; color: var(--danger); border: 1px solid var(--danger); font-size: 0.8rem; padding: 5px 10px; }
.btn-danger:hover { background: var(--danger); color: white; }

/* Navigation */
.top-bar { background: #333; color: #ccc; text-align: center; font-size: 0.75rem; padding: 8px; }
nav { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 20px; } .nav-links a { text-decoration: none; color: var(--text); font-weight: 500; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #0F0F0F 0%, #2c3e50 100%); color: var(--white); text-align: center; padding: 100px 20px; }
.hero h1 { margin: 0 0 15px; font-size: 2.5rem; }

/* Code Grid & Cards */
.code-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.code-card { background: var(--white); padding: 25px; border-radius: 12px; text-align: center; border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* Clipboard UI */
.code-display { 
    font-size: 2rem; font-family: monospace; color: var(--accent); 
    margin: 15px 0; background: #f0f4ff; padding: 15px; 
    border-radius: 8px; border: 2px dashed #dbeafe; 
    cursor: pointer; transition: 0.2s; position: relative;
}
.code-display:hover { background: #e0eaff; border-color: var(--accent); transform: scale(1.02); }
.code-display:active { transform: scale(0.98); }
.copy-hint { font-size: 0.7rem; color: #888; display: block; margin-top: 5px; font-family: sans-serif; letter-spacing: 0; }

/* Report Section */
.report-section { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #777; }

/* Submission & Modal */
.bg-light { background: #e9ecef; padding: 80px 0; }
.submission-container { max-width: 500px; background: var(--white); padding: 40px; border-radius: 15px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 15px; } .form-group input { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 5px; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px); }
.modal-content { background: white; padding: 40px; border-radius: 12px; text-align: center; }
.modal-actions { margin-top: 20px; gap: 10px; display: flex; justify-content: center; }

/* Toast Notifications */
#toast {
    visibility: hidden; min-width: 250px; background-color: #333; color: #fff;
    text-align: center; border-radius: 50px; padding: 16px; position: fixed;
    z-index: 3000; left: 50%; bottom: 30px; transform: translateX(-50%);
    font-size: 1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* Footer */
footer { background: var(--primary); color: #888; padding: 40px 0; text-align: center; font-size: 0.9rem; }
footer a { color: #fff; text-decoration: none; }
@media (max-width: 600px) { .nav-links { display: none; } }