/* ========== IMPORT GOOGLE FONT ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

/* ========== GENERAL STYLING ========== */
body {
    background: url('../images/miyagawa_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Noto Serif JP', serif;
    color: #3e2723; /* Deep brown for readability */
}

/* ========== LOGIN & REGISTRATION STYLING ========== */
.login-container {
    margin: 100px auto;
    padding: 20px;
    background: rgba(255, 245, 235, 0.9); /* Warm off-white with slight transparency */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #a67c52; /* Subtle gold-brown border */
}

.form-group label {
    font-weight: bold;
    color: #5d4037; /* Dark brown for a classic feel */
}

.form-control {
    border: 1px solid #a67c52;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
}

/* ========== KAGAI GOLD BUTTON ACCENTS ========== */
.btn-primary {
    background-color: #9b2e2e;         /* Deep Kyoto red */
    border: 2px solid #a67c52;         /* Kagai Gold border */
    font-weight: bold;
    box-shadow: 0 0 0 1px #a67c52 inset; /* subtle inner outline */
}

.btn-primary:hover {
    background-color: #a8433e;         /* Slightly lighter red */
    border-color: #a67c52;
    box-shadow: 0 0 8px rgba(166, 124, 82, 0.5); /* warm glow on hover */
}

.btn {
    border-radius: 5px !important; /* Adjust as needed */
}

.label-example {
    color: red;
    font-weight: bold;
}

/* ========== LINKS ========== */
a {
    color: #9b2e2e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #a8433e;
}

/* ========== DASHBOARD SIDEBAR STYLING (Minimizing Sidebar) ========== */
.sidebar {
    background: url('../images/red_silk_texture.jpg') repeat;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    transition: width 0.3s ease-in-out;
    box-shadow: 3px 0px 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 2px solid #a67c52; /* Gold-brown border */

    /* Hide scrollbars */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


.sidebar a {
    padding: 12px 20px;
    display: block;
    color: #f5e1c8; /* Warm beige instead of bright white */
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.sidebar a:hover {
    background-color: rgba(166, 124, 82, 0.5); /* Subtle gold-brown */
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: url('../images/fan_icon.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

/* Collapsed Sidebar */
.sidebar.minimized {
    width: 60px;
}

.sidebar.minimized a {
    display: none;
}

/* Main Content Adjustments */
.content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar.minimized + .content {
    margin-left: 60px;
}

/* Ensure the table wrapper respects border-radius */
.table-wrapper {
    border-radius: 10px !important;
    overflow: hidden; /* Ensures the corners stay rounded */
    border: 1px solid #dee2e6; /* Matches Bootstrap default border color */
}

/* Fix for the table itself */
.table-bordered {
    border-collapse: collapse; /* No spacing between cells */
    width: 100%;
}

/* Manually apply rounded corners to first and last cells */
.table-bordered thead tr:first-child th:first-child {
    border-top-left-radius: 10px !important;
}

.table-bordered thead tr:first-child th:last-child {
    border-top-right-radius: 10px !important;
}

.table-bordered tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px !important;
}

.table-bordered tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px !important;
}


/* ========== DASHBOARD PAGE CONTENT ========== */
.dashboard-header {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #9b2e2e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #3e2723;
}

.dashboard-section {
    background: rgba(255, 245, 235, 0.9); /* Consistent washi paper feel */
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #a67c52;
}

.rank-header {
    background: rgba(166, 124, 82, 0.8); /* Warm gold-brown */
    color: #3e2723; /* Dark brown for readability */
    border-bottom: 2px solid #a67c52; /* Subtle gold-brown border */
    font-weight: bold;
}

.profile-picture {
    border: 4px solid #a67c52; /* Border color */
    border-radius: 50%; /* Ensures a perfect circle */
    width: 150px;
    height: 150px;
    object-fit: cover; /* Ensures the image fills the circle properly */
}

.profile-title {
    font-family: 'Yu Mincho', serif; /* Traditional Japanese calligraphic style */
    color: #a67c52; /* Elegant gold-brown */
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .login-container {
        margin: 50px auto;
        padding: 15px;
    }
    .sidebar {
        width: 200px;
    }
    .sidebar.minimized {
        width: 50px;
    }
    .sidebar.minimized + .content {
        margin-left: 50px;
    }
}
