/* =========================================
   STYLE.CSS (KOD PENUH & TERKINI)
   ========================================= */

/* Import font moden dan trendy dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Palet Warna Tema */
    --dark-blue: #0f2b46;       
    --dark-blue-hover: #1a4066;
    --orange: #f97316;          
    --orange-hover: #ea580c;
    
    /* Latar Belakang & Teks */
    --bg-body: #f4f7f9;         
    --bg-container: #ffffff;    
    --text-main: #334155;       
    --text-muted: #64748b;
    --border-color: #cbd5e1;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
}

/* Navigasi (Menu Atas) */
.nav-menu {
    background-color: var(--dark-blue);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(15, 43, 70, 0.15);
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--orange);
}

/* Bekas Utama (Container) */
.container {
    max-width: 850px;
    margin: 50px auto;
    background: var(--bg-container);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--dark-blue);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 6px;
    background-color: var(--orange);
    border-top-left-radius: 12px;
}

h1, h2, h3 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

h2 {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

/* Kotak Borang (Form Groups) */
.form-group {
    margin-bottom: 25px;
    padding: 25px;
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.form-group:hover {
    border-color: #94a3b8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.required {
    color: var(--orange);
    font-weight: bold;
    font-size: 16px;
}

/* Input Fields */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
select:focus {
    border-color: var(--orange);
    background-color: var(--bg-container);
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

/* Input Readonly (Autofill DB) */
input[readonly] {
    background-color: #e2e8f0 !important;
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: #cbd5e1;
}

/* Butang Utama (General) */
.btn {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}

/* Utilities */
p { font-size: 15px; }
a { color: var(--orange); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
a:hover { color: var(--dark-blue); text-decoration: underline; }
.hidden { display: none !important; }
hr { border: 0; height: 1px; background: #e2e8f0; margin: 25px 0; }
input[type="radio"] { accent-color: var(--orange); margin-right: 10px; transform: scale(1.3); cursor: pointer; }


/* =========================================
   REKAAN BUTANG 3D (Untuk Laman Utama / index.php)
   ========================================= */
.role-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 30px;
}

.btn-role {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 270px; 
    background: linear-gradient(180deg, #fdba74 0%, #f97316 100%); 
    color: #000000; 
    padding: 20px 30px;
    border-radius: 50px; 
    text-decoration: none;
    
    /* Kesan 3D dan pantulan cahaya */
    box-shadow: 
        inset 0 6px 10px rgba(255, 255, 255, 0.4), 
        0 8px 0 #c2410c, 
        0 15px 20px rgba(0,0,0,0.2); 
        
    transition: all 0.1s ease-in-out;
    transform: translateY(0);
}

.btn-role i { 
    font-size: 40px; 
    color: #000000; 
}

.btn-text {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.1;
    color: #000000;
}

.btn-role:hover {
    background: linear-gradient(180deg, #fed7aa 0%, #ea580c 100%);
    text-decoration: none;
    color: #000000;
}

.btn-role:active {
    transform: translateY(8px);
    box-shadow: 
        inset 0 4px 6px rgba(255, 255, 255, 0.4), 
        0 0 0 #c2410c, 
        0 5px 10px rgba(0,0,0,0.2);
}


/* =========================================
   SUSUN ATUR GAMBAR SEBELAH TAJUK (ATAS KANAN - register_participant.php)
   =========================================[cite: 1] */
.form-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
}

.header-text {
    flex: 1;
}

.header-text h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}

.header-photo {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.passport-box {
    width: 120px;
    height: 160px;
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.passport-box:hover {
    border-color: var(--orange);
    background-color: #fffaf0;
}

.passport-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: none; 
}

.passport-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 5px;
    z-index: 1;
}

.passport-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--dark-blue);
}
/* =========================================
   REKAAN JADUAL (TABLE) UNTUK DASHBOARD
   ========================================= */
.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

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

table th {
    background-color: var(--dark-blue);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

table tr:hover {
    background-color: #f8fafc;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-edit { background-color: var(--orange); }
.btn-edit:hover { background-color: var(--orange-hover); }

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background-color: #e0f2fe;
    color: #0284c7;
}