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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 250px;
    height: auto;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #dc143c;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #dc143c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #b8112e;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.blocked-message {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    line-height: 1.8;
}

.blocked-message i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    color: #dc143c;
}

.top-bar {
    width: 100%;
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e5e5e5;
}

.top-bar-logo img {
    height: 35px;
    width: auto;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 67px);
}

.sidebar {
    width: 280px;
    background: #5a6169;
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-menu .logout-form {
    margin: 0;
}

.sidebar-menu .logout-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    border: 0;
    background: none;
    color: white;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-menu .logout-button:hover {
    background: #4a5158;
}

.sidebar-menu .logout-button svg {
    margin-right: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #dc143c;
    stroke: #dc143c;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #4a5158;
}

.sidebar-menu a svg {
    margin-right: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #dc143c;
    stroke: #dc143c;
}

.menu-separator {
    padding: 20px 25px 10px 25px;
    margin-top: 10px;
}

.menu-separator h3 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #dc143c;
    margin: 10px 0;
}

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

.btn-action {
    background: #dc143c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #b8112e;
}

.placeholder-text {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #dc143c;
}

.form-group select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    color: #666;
}

.file-input-label:hover {
    border-color: #dc143c;
}

.file-input-label.has-file {
    color: #333;
}

.action-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin: 0 4px;
}

.action-icon svg {
    width: 20px;
    height: 20px;
}

.action-icon .tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.action-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.action-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.status-icon .tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.status-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.status-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}
