/**
 * EduManage Pro - Public Styles
 */

/* General Styles */
.edumanage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Layout */
.edumanage-dashboard {
    background: #f9f9f9;
    min-height: 100vh;
}

.edumanage-sidebar {
    width: 250px;
    background: #1d2327;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.edumanage-sidebar-header {
    padding: 20px;
    background: #2271b1;
    text-align: center;
}

.edumanage-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.edumanage-sidebar-menu li {
    border-bottom: 1px solid #2c3338;
}

.edumanage-sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.edumanage-sidebar-menu a:hover {
    background: #2271b1;
}

.edumanage-sidebar-menu a.active {
    background: #2271b1;
    border-left: 4px solid #fff;
}

.edumanage-main-content {
    margin-left: 250px;
    padding: 30px;
}

/* Cards */
.edumanage-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.edumanage-card-header {
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.edumanage-card-header h3 {
    margin: 0;
    color: #1d2327;
}

/* Forms */
.edumanage-form-group {
    margin-bottom: 20px;
}

.edumanage-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.edumanage-form-input,
.edumanage-form-select,
.edumanage-form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.edumanage-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.edumanage-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.edumanage-btn-primary {
    background: #2271b1;
    color: #fff;
}

.edumanage-btn-primary:hover {
    background: #135e96;
}

.edumanage-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.edumanage-btn-secondary:hover {
    background: #e5e5e5;
}

.edumanage-btn-success {
    background: #00a32a;
    color: #fff;
}

.edumanage-btn-success:hover {
    background: #008a20;
}

.edumanage-btn-danger {
    background: #d63638;
    color: #fff;
}

.edumanage-btn-danger:hover {
    background: #b32d2f;
}

/* Tables */
.edumanage-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.edumanage-table th,
.edumanage-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.edumanage-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #1d2327;
}

.edumanage-table tr:hover {
    background: #f9f9f9;
}

/* Alerts */
.edumanage-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.edumanage-alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.edumanage-alert-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.edumanage-alert-warning {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.edumanage-alert-info {
    background: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

/* Loading Spinner */
.edumanage-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f0f0f1;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .edumanage-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .edumanage-main-content {
        margin-left: 0;
    }
    
    .edumanage-stats-grid {
        grid-template-columns: 1fr;
    }
}
