/* ============================================================
   University: Universiti Kuala Lumpur (UniKL MIIT)
   Students: Muhammad Faiz bin Isham  ( 52052325165 )
             Faris Adib Fakhrul Anwar ( 52052325158 )
            Miqhael Adha bin Ramli    ( 52052325153 )
   Title: Zenith Trader Syndicates - Assignment 1
   Lecturer: Sir Ezat
   Submission Date: 11th June 2026
   ============================================================ */

/* --- External CSS File --- */

/* CSS Website Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

/* --- Header --- */
header {
    background-color: #0b1120;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 4px solid #c9a84c;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #c9a84c;
}

/* Navigation */
nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #c9a84c;
    color: #0b1120;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #0b1120 0%, #1a2a4a 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #c5cddf;
    max-width: 650px;
    margin: 0 auto 30px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: #c9a84c;
    color: #0b1120;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #ffffff;
    color: #0b1120;
    transform: translateY(-2px);
}

/* --- Section Styling --- */
.section {
    padding: 50px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0b1120;
    border-bottom: 3px solid #c9a84c;
    display: inline-block;
    padding-bottom: 6px;
}

/* --- Stats Grid (Div/Block elements) --- */
.stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.stat-card {
    background: #ffffff;
    flex: 1 1 200px;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #c9a84c;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #0b1120;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #c9a84c;
}

.card h3 {
    margin-bottom: 10px;
    color: #0b1120;
}

/* --- Table --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

table, th, td {
    border: 2px solid #dddddd;
}

th {
    background-color: #0b1120;
    color: #ffffff;
    padding: 12px 15px;
    text-align: left;
}

td {
    padding: 10px 15px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f0e8d0;
}

/* --- Lists --- */
ul, ol {
    margin: 15px 0 15px 25px;
}

ul li, ol li {
    margin-bottom: 6px;
}

dl {
    margin: 15px 0;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

dl dt {
    font-weight: bold;
    color: #0b1120;
    margin-top: 10px;
}

dl dd {
    margin-left: 20px;
    color: #555;
    margin-bottom: 8px;
}

/* --- Abbreviation --- */
abbr {
    text-decoration: underline dotted;
    cursor: help;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.img-thumb {
    border: 3px solid #ddd;
    padding: 4px;
    transition: border-color 0.3s ease;
}

.img-thumb:hover {
    border-color: #c9a84c;
}

/* --- Form --- */
form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 600px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0b1120;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c9a84c;
}

/* --- Video/Audio wrapper --- */
.media-wrapper {
    margin: 25px 0;
    text-align: center;
}

/* --- iframe --- */
iframe {
    border: 2px solid #ddd;
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    background-color: #0b1120;
    color: #a0aabf;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 4px solid #c9a84c;
}

footer a {
    color: #c9a84c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- ID-based selector example --- */
#main-content {
    min-height: 400px;
}

/* --- Class-based selector example --- */
.highlight-text {
    color: #c9a84c;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

/* --- Margin and Padding utility --- */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* --- Overflow handling --- */
.overflow-box {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* ============================================================
   SAFE DASHBOARD PORTAL STYLES (Appended to prevent layout breaks)
   ============================================================ */

/* Targets the body only when the dashboard sidebar is present */
body:has(.sidebar) {
    background-color: #0b1120 !important; /* Dark theme background */
    color: #ffffff !important;
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Layout */
.sidebar {
    width: 260px;
    background-color: #0f172a;
    border-right: 3px solid #c9a84c;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    color: #c9a84c;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar nav a {
    color: #94a3b8;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar nav a:hover {
    background-color: #1e293b;
    color: #c9a84c;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 40px;
    background-color: #0b1120;
    overflow-y: auto;
}

/* Trading Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}

th {
    background-color: #1e293b;
    color: #c9a84c;
    font-weight: 600;
}

/* Color Helpers for Profit/Loss */
.green { color: #10b981 !important; font-weight: bold; }
.red { color: #f43f5e !important; font-weight: bold; }

/* Cards & Rules Sections */
.notice-card, .rules {
    background-color: #0f172a;
    border-left: 4px solid #c9a84c;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.notice-card h3, .rules h3 {
    color: #c9a84c;
    margin-bottom: 10px;
}

.rules ul {
    padding-left: 20px;
    color: #94a3b8;
}

.rules li {
    margin-bottom: 8px;
}