/* Global Settings */
:root {
    --srils-primary: #2E7D32;
    --srils-primary-hover: #1B5E20;
    --srils-secondary: #6c757d;
    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Compensation for fixed navbar */
}

/* Watermark Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/SRILS_HPC_LOGO.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 600px; /* Slightly larger */
    opacity: 0.05; /* Increased visibility slightly */
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Navbar Beautification */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important; /* White Glass */
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); /* Softer shadow */
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.35rem;
    color: #2c3e50 !important; /* Dark text */
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
    color: #555 !important; /* Dark gray text */
    position: relative;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--srils-primary); /* Green underline */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--srils-primary) !important; /* Green text on hover */
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 80%;
}

/* Navbar Toggler (Mobile) */
.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Card Modernization */
.card {
    background-color: rgba(255, 255, 255, 0.95); /* Slight transparency */
    border: none;
    border-radius: 16px; /* Rounder corners */
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden; /* For image/header clipping */
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--srils-primary), var(--srils-primary-hover));
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--srils-primary-hover), var(--srils-primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

.btn-outline-custom {
    color: var(--srils-primary);
    border: 2px solid var(--srils-primary);
    background: transparent;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background-color: var(--srils-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    transform: translateY(-2px);
}

/* Tables */
.table {
    margin-bottom: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f1f3f5;
    color: #495057;
    font-weight: 700;
    border-bottom: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
}

.table tbody td {
    vertical-align: middle;
    color: #495057;
    border-top: 1px solid #f1f3f5;
    padding: 12px;
}

/* Badges */
.badge {
    padding: 0.6em 0.9em;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
}

/* Utility Text */
.text-srils {
    color: var(--srils-primary) !important;
}

/* Footer */
footer {
    background-color: white !important;
    border-top: 1px solid #eaeaea !important;
    padding: 2rem 0;
    color: #868e96 !important;
    font-size: 0.9rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 0.7rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fcfcfc;
}

.form-control:focus, .form-select:focus {
    border-color: var(--srils-primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #343a40;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
