/* Admin Panel Styling */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.footer {
    margin-top: auto;
}

.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Dashboard Cards */
.stat-card {
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .card-text {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0;
}

.stat-card .card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.2;
}

.card-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.card-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.card-orange {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.card-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Form Styling */
.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    border-color: var(--primary-color);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Compose page */
.note-editor {
    border-radius: 0.25rem;
}

.note-toolbar {
    background-color: #f8f9fa;
}

/* Template cards */
.template-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Activity Log */
.activity-item {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-item:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.activity-item.success:before {
    background-color: var(--success-color);
}

.activity-item.error:before {
    background-color: var(--danger-color);
}

/* Settings page */
.settings-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin-top: 5rem;
}

.login-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .login-container {
        margin-top: 2rem;
        padding: 0 1rem;
    }
}

/* Animation for notifications */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.alert {
    animation: fadeInUp 0.5s ease;
}