/* RentManager API Frontend Styles */

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Card Styles */
.api-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.api-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Code Block Styles */
.code-block {
    background: #2d3748;
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #4a5568;
    border-radius: 8px 8px 0 0;
}

.code-block::after {
    content: '⚫ ⚫ ⚫';
    position: absolute;
    top: 8px;
    left: 12px;
    color: #718096;
    font-size: 8px;
    letter-spacing: 2px;
}

.code-block pre {
    padding-top: 40px !important;
}

/* Method Badge Styles */
.method-get {
    @apply bg-blue-100 text-blue-800;
}

.method-post {
    @apply bg-green-100 text-green-800;
}

.method-put {
    @apply bg-yellow-100 text-yellow-800;
}

.method-delete {
    @apply bg-red-100 text-red-800;
}

/* Hero Animations */
.hero-icon {
    animation: float 3s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-icon i {
        font-size: 4rem !important;
    }
    
    .api-card:hover {
        transform: none;
    }
}

/* Table Styles */
.api-table {
    @apply min-w-full divide-y divide-gray-200;
}

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

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

.api-table tbody tr:nth-child(even) {
    @apply bg-gray-50;
}

/* Status Indicators */
.status-success {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800;
}

.status-error {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800;
}

.status-warning {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800;
}

/* Sidebar Styles */
.sidebar {
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .code-block {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .code-block pre code {
        color: black !important;
    }
}

