/* @author 🐈‍⬛ Siam Thanat Hack Co., Ltd. (STH) */

:root {
    --temple-gold: #FFF8DC;
    --temple-light-gold: #FFFACD;
    --temple-white: #FFFFFF;
    --temple-black: #2C2C2C;
    --temple-accent: #DAA520;
    --temple-shadow: rgba(218, 165, 32, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--temple-light-gold) 0%, var(--temple-gold) 100%);
    color: var(--temple-black);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.temple-header {
    background: var(--temple-white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px var(--temple-shadow);
    text-align: center;
    border: 3px solid var(--temple-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.temple-logo h1 {
    font-size: 2.5em;
    color: var(--temple-accent);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.temple-subtitle {
    font-size: 1.2em;
    color: var(--temple-black);
    font-weight: 300;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    padding: 10px 20px;
    background: var(--temple-accent);
    color: var(--temple-white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.nav-active {
    background: var(--temple-black);
    transform: translateY(-2px);
}

/* Login Section */
.login-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex: 1;
    align-items: start;
}

.login-card {
    background: var(--temple-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--temple-shadow);
    border: 2px solid var(--temple-accent);
}

.login-card h2 {
    color: var(--temple-accent);
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.login-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--temple-black);
    opacity: 0.8;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--temple-black);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--temple-gold);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: var(--temple-light-gold);
}

.form-group input:focus {
    outline: none;
    border-color: var(--temple-accent);
    box-shadow: 0 0 10px var(--temple-shadow);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--temple-accent);
    color: var(--temple-white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--temple-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Temple Info */
.temple-info {
    background: var(--temple-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--temple-shadow);
    border: 2px solid var(--temple-accent);
}

.temple-info h3 {
    color: var(--temple-accent);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.donation-highlights {
    margin-top: 25px;
}

.donation-highlights h4 {
    color: var(--temple-black);
    margin-bottom: 15px;
}

.donation-highlights ul {
    list-style: none;
    padding-left: 0;
}

.donation-highlights li {
    padding: 8px 0;
    border-bottom: 1px solid var(--temple-gold);
}

/* Dashboard Styles */
.dashboard-content {
    flex: 1;
}

.welcome-section {
    background: var(--temple-white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px var(--temple-shadow);
    border: 2px solid var(--temple-accent);
    text-align: center;
}

.welcome-section h2 {
    color: var(--temple-accent);
    font-size: 2em;
    margin-bottom: 10px;
}

.welcome-text {
    color: var(--temple-black);
    opacity: 0.8;
    font-size: 1.1em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.catalog-section,
.admin-tools,
.manager-info {
    background: var(--temple-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--temple-shadow);
    border: 2px solid var(--temple-accent);
}

.catalog-section h3,
.admin-tools h3,
.manager-info h3 {
    color: var(--temple-accent);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.catalog-item {
    background: var(--temple-light-gold);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--temple-accent);
    transition: transform 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--temple-shadow);
}

.item-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.item-details h4 {
    color: var(--temple-black);
    margin-bottom: 10px;
}

.item-stock,
.item-owner {
    color: var(--temple-black);
    opacity: 0.8;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.tools-grid {
    display: grid;
    gap: 15px;
}

.tool-card {
    background: var(--temple-light-gold);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--temple-accent);
}

.tool-card h4 {
    color: var(--temple-black);
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--temple-black);
    opacity: 0.8;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.tool-link {
    color: var(--temple-accent);
    text-decoration: none;
    font-weight: 600;
}

.tool-link:hover {
    color: var(--temple-black);
}

.info-card {
    background: var(--temple-light-gold);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--temple-accent);
}

.info-card p {
    margin-bottom: 10px;
    color: var(--temple-black);
}

.status-active {
    color: #4caf50;
    font-weight: 600;
}

/* Footer */
.temple-footer {
    background: var(--temple-white);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
    border: 2px solid var(--temple-accent);
    box-shadow: 0 8px 25px var(--temple-shadow);
}

.temple-footer p {
    color: var(--temple-black);
    margin-bottom: 5px;
}

.author-credit {
    font-size: 0.9em;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-section {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .temple-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-nav {
        margin-top: 20px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}