/* 
 * Form Styles - Shared form components
 * Usage: admin pages, login, registration, article creation
 * Consolidates: Buttons, inputs, error/success messages, loading states
 */

/* Button Styles - used in 7+ pages */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Loading State - used in 8 pages */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Error and Success Messages - used in 7+ pages */
.error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.warning {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Form Input Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Template Card Styles - used in 4 pages */
.template-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    background: #f8f9ff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.template-card h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.template-card p {
    color: #666;
    font-size: 0.9rem;
}


@media (max-width: 1199px) {
    .admin-secndary-menu  {
        top: 30px;
    }
}


@media (max-width: 416px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 399px) {
    .admin-secondary-menu {
        padding-top: 43px;
        margin-top: 22px;
    }
    .header {
        padding-top: 70px;
        margin-top: 80px;
    }
    
}

@media (max-width:312px) {
    
    .header {
        padding-top: 80px;
        margin-top: 200px;
    }
    
}



