/* Styles CSS */
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
  }

  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

/* Card Styles */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-bottom: none;
}

.card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.card-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.form-control.is-invalid {
    border-color: #e74c3c;
}

/* Button Styles */
.btn {
  display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
  text-align: center;
  text-decoration: none;
    border: none;
    border-radius: 8px;
  cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn-success {
    background: #28a745;
    color: white;
}

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

/* Alert Styles */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
  border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
  overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Modal Styles */
.modal {
    display: none;
  position: fixed;
    z-index: 1000;
  left: 0;
    top: 0;
  width: 100%;
  height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
  display: flex;
  justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
  display: flex;
  justify-content: flex-end;
    gap: 10px;
}

.close {
    background: none;
    border: none;
    font-size: 24px;
  cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
        padding: 0 10px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col {
        padding: 0 10px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .modal-dialog {
        width: 95%;
        margin: 10px;
    }
    
    .btn {
  width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .card-header h2 {
        font-size: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 10px 20px;
    }
            }