@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
}

.dashboard-card {
    @apply bg-white rounded-xl shadow-md p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1 border border-gray-100 cursor-pointer;
}

.dashboard-card h3 {
    @apply text-xl font-semibold text-gray-800 mt-4 mb-2;
}

.dashboard-card p {
    @apply text-gray-600 text-sm;
}

.card-icon {
    @apply w-12 h-12 rounded-lg flex items-center justify-center text-white;
}

.dashboard-card:nth-child(1) .card-icon {
    @apply bg-gradient-to-br from-primary-500 to-blue-500;
}

.dashboard-card:nth-child(2) .card-icon {
    @apply bg-gradient-to-br from-yellow-500 to-amber-500;
}

.dashboard-card:nth-child(3) .card-icon {
    @apply bg-gradient-to-br from-green-500 to-emerald-500;
}

.dashboard-card:nth-child(4) .card-icon {
    @apply bg-gradient-to-br from-purple-500 to-violet-500;
}

.dashboard-card:nth-child(5) .card-icon {
    @apply bg-gradient-to-br from-pink-500 to-rose-500;
}

.dashboard-card:nth-child(6) .card-icon {
    @apply bg-gradient-to-br from-orange-500 to-red-500;
}

.dashboard-card:nth-child(7) .card-icon {
    @apply bg-gradient-to-br from-cyan-500 to-teal-500;
}

.dashboard-card:nth-child(8) .card-icon {
    @apply bg-gradient-to-br from-indigo-500 to-blue-500;
}

.form-container {
    @apply max-w-4xl mx-auto bg-white rounded-xl shadow-lg p-6 my-8;
}

.form-header {
    @apply mb-8 pb-4 border-b border-gray-200;
}

.form-header h1 {
    @apply text-3xl font-bold text-gray-800 mb-2;
}

.form-header p {
    @apply text-gray-600;
}

.form-section {
    @apply mb-8;
}

.form-section h2 {
    @apply text-xl font-semibold text-gray-700 mb-4 pb-2 border-b border-gray-100;
}

.form-grid {
    @apply grid grid-cols-1 md:grid-cols-2 gap-6;
}

.form-group {
    @apply mb-4;
}

.form-group label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-input {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors;
}

.form-textarea {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors h-32 resize-y;
}

.form-select {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors bg-white;
}

.btn {
    @apply px-6 py-2 rounded-lg font-medium transition-colors duration-200;
}

.btn-primary {
    @apply bg-primary-500 text-white hover:bg-primary-600;
}

.btn-secondary {
    @apply bg-secondary-500 text-white hover:bg-secondary-600;
}

.btn-outline {
    @apply border border-gray-300 text-gray-700 hover:bg-gray-50;
}

.table-container {
    @apply overflow-x-auto rounded-lg border border-gray-200;
}

.table {
    @apply min-w-full divide-y divide-gray-200;
}

.table thead {
    @apply bg-gray-50;
}

.table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table tbody {
    @apply bg-white divide-y divide-gray-200;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-700;
}

.table-actions {
    @apply flex space-x-2;
}

.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.badge-success {
    @apply bg-green-100 text-green-800;
}

.badge-warning {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-danger {
    @apply bg-red-100 text-red-800;
}

.part-row {
    @apply border border-gray-200 rounded-lg p-4 mb-4 bg-gray-50;
}

.required::after {
    content: " *";
    @apply text-red-500;
}