/* ========================================
   Denine Ply - Custom Styles
   Color Scheme based on existing website
   ======================================== */

:root {
    /* Primary Colors from Denine Ply Website */
    --primary-black: #000000;
    --primary-red: #dd3333;
    --text-color: #000000;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.75);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-black);
}

a {
    color: var(--primary-black);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    color: #ffffff;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-black);
    border-color: var(--primary-black);
}

.btn-outline-primary:hover {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #c82e2e;
    border-color: #c82e2e;
}

/* ========================================
   Forms
   ======================================== */

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--primary-black);
    margin-bottom: 8px;
}

/* ========================================
   Auth Pages (Login/Register)
   ======================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.auth-card {
    background: var(--bg-light);
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
}

.auth-image-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-red) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.auth-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/logo-white.jpg') center/cover;
    opacity: 0.1;
}

.auth-logo {
    max-width: 200px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.auth-logo_main {
    max-width: 200px;
    /* margin-bottom: 30px; */
    position: relative;
    z-index: 1;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    /* padding: 20px; */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    height:100px;
}

.auth-tagline {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
}

.auth-form-section {
    flex: 1;
    padding: 50px 40px;
}

.auth-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary-black);
}

.auth-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--bg-light);
    padding: 0 15px;
    position: relative;
    color: #6c757d;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.password-wrapper {
    position: relative;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check-label {
    font-size: 14px;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary-red);
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 600;
}

/* ========================================
   Dashboard
   ======================================== */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--primary-black);
    color: #ffffff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-logo {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    max-width: 150px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-red);
    color: #ffffff;
    padding-left: 30px;
}

.sidebar-menu i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-gray);
}

/* Navbar */
.dashboard-navbar {
    background: var(--bg-light);
    padding: 15px 30px;
    box-shadow: 0 2px 4px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-black);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 15px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 300px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-black);
}

.badge-notify {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Area */
.content-area {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.breadcrumb {
    font-size: 14px;
    color: #6c757d;
}

/* Dashboard Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-icon.primary {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-black);
}

.stat-icon.danger {
    background: rgba(221, 51, 51, 0.1);
    color: var(--primary-red);
}

.stat-icon.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* Content Cards */
.content-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table thead {
    background: var(--bg-gray);
}

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

.custom-table tbody tr:hover {
    background: var(--bg-gray);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-badge.danger {
    background: rgba(221, 51, 51, 0.1);
    color: var(--primary-red);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
    }
    
    .auth-image-section {
        padding: 30px;
    }
    
    .auth-form-section {
        padding: 40px 30px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .auth-form-section {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 26px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .navbar-right {
        gap: 15px;
    }
    
    .user-profile span {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 10px;
    }
    
    .auth-form-section {
        padding: 25px 15px;
    }
    
    .dashboard-navbar {
        padding: 15px 20px;
    }
    
    .search-box {
        display: none;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 10px;
        font-size: 13px;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ========================================
   Utilities
   ======================================== */

.text-primary-custom {
    color: var(--primary-black);
}

.text-danger-custom {
    color: var(--primary-red);
}

.bg-primary-custom {
    background-color: var(--primary-black);
}

.bg-danger-custom {
    background-color: var(--primary-red);
}

.mt-10 {
    margin-top: 10px;
}

.mb-10 {
    margin-bottom: 10px;
}

.shadow-custom {
    box-shadow: 0 2px 8px var(--shadow);
}
