/* ATM ERP Website Package - Main Styles */

/* Custom Components */
@layer components {
    /* Buttons */
    .btn-primary {
        @apply bg-blue-600 text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-blue-700 transition-colors;
    }
    
    .btn-secondary {
        @apply bg-gray-200 text-gray-800 px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-300 transition-colors;
    }
    
    .btn-outline {
        @apply border border-gray-300 text-gray-700 px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-50 transition-colors;
    }
    
    /* Cards */
    .card {
        @apply bg-white rounded-lg shadow-sm border border-gray-200 p-6;
    }
    
    .card-hover {
        @apply bg-white rounded-lg shadow-sm border border-gray-200 p-6 hover:shadow-md transition-shadow;
    }
    
    /* Forms */
    .form-input {
        @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
    }
    
    .form-label {
        @apply block text-sm font-medium text-gray-700 mb-2;
    }
    
    /* Alerts */
    .alert {
        @apply p-4 rounded-lg border;
    }
    
    .alert-success {
        @apply bg-green-50 border-green-200 text-green-800;
    }
    
    .alert-error {
        @apply bg-red-50 border-red-200 text-red-800;
    }
    
    .alert-warning {
        @apply bg-yellow-50 border-yellow-200 text-yellow-800;
    }
    
    .alert-info {
        @apply bg-blue-50 border-blue-200 text-blue-800;
    }
    
    /* Navigation */
    .nav-link {
        @apply px-3 py-2 text-sm font-medium text-gray-700 hover:text-gray-900 transition-colors;
    }
    
    .nav-link-active {
        @apply px-3 py-2 text-sm font-medium text-blue-600;
    }
    
    /* Documentation */
    .doc-sidebar {
        @apply w-64 bg-gray-50 border-r border-gray-200 p-4;
    }
    
    .doc-content {
        @apply flex-1 p-6;
    }
    
    .doc-nav-item {
        @apply block px-3 py-2 text-sm text-gray-700 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors;
    }
    
    .doc-nav-item-active {
        @apply block px-3 py-2 text-sm text-blue-600 bg-blue-50 rounded-lg;
    }
    
    /* Admin Panel */
    .admin-sidebar {
        @apply w-64 bg-gray-900 text-white;
    }
    
    .admin-content {
        @apply flex-1 bg-gray-50;
    }
    
    .admin-nav-item {
        @apply flex items-center px-4 py-2 text-sm text-gray-300 hover:text-white hover:bg-gray-800 transition-colors;
    }
    
    .admin-nav-item-active {
        @apply flex items-center px-4 py-2 text-sm text-white bg-gray-800;
    }
    
    /* Tables */
    .table {
        @apply min-w-full divide-y divide-gray-200;
    }
    
    .table-header {
        @apply bg-gray-50;
    }
    
    .table-header-cell {
        @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
    }
    
    .table-body {
        @apply bg-white divide-y divide-gray-200;
    }
    
    .table-row {
        @apply hover:bg-gray-50;
    }
    
    .table-cell {
        @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;
    }
    
    /* Stats Cards */
    .stats-card {
        @apply bg-white rounded-lg shadow-sm border border-gray-200 p-6;
    }
    
    .stats-number {
        @apply text-3xl font-bold text-gray-900;
    }
    
    .stats-label {
        @apply text-sm font-medium text-gray-500;
    }
    
    /* Pricing Cards */
    .pricing-card {
        @apply bg-white rounded-lg shadow-sm border border-gray-200 p-6 relative;
    }
    
    .pricing-card-featured {
        @apply bg-white rounded-lg shadow-lg border-2 border-blue-500 p-6 relative;
    }
    
    .pricing-price {
        @apply text-4xl font-bold text-gray-900;
    }
    
    .pricing-period {
        @apply text-sm text-gray-500;
    }
    
    /* Hero Section */
    .hero-section {
        @apply bg-gradient-to-br from-blue-600 via-blue-700 to-blue-800 text-white relative overflow-hidden;
        background-size: 200% 200%;
        animation: gradient-shift 8s ease-in-out infinite;
    }
    
    .hero-section::before {
        content: '';
        @apply absolute inset-0 bg-black opacity-10;
    }
    
    .hero-title {
        @apply text-4xl md:text-6xl font-bold leading-tight relative z-10;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .hero-subtitle {
        @apply text-xl md:text-2xl text-blue-100 mt-4 relative z-10;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Features Grid */
    .features-grid {
        @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8;
    }
    
    .feature-card {
        @apply text-center p-6;
    }
    
    .feature-icon {
        @apply w-16 h-16 mx-auto mb-4 text-blue-600;
    }
    
    .feature-title {
        @apply text-xl font-semibold text-gray-900 mb-2;
    }
    
    .feature-description {
        @apply text-gray-600;
    }
}

/* Custom Utilities */
@layer utilities {
    .text-gradient {
        @apply bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent;
    }
    
    .shadow-soft {
        box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    }
    
    .backdrop-blur-soft {
        backdrop-filter: blur(8px);
    }
}

/* Animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        @apply text-3xl md:text-4xl;
    }
    
    .hero-subtitle {
        @apply text-lg md:text-xl;
    }
    
    .features-grid {
        @apply grid-cols-1 md:grid-cols-2;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        @apply bg-gray-900 text-white;
    }
    
    .dark-mode .card {
        @apply bg-gray-800 border-gray-700;
    }
    
    .dark-mode .form-input {
        @apply bg-gray-800 border-gray-600 text-white;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Documentación Mejorada */
.doc-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow-y: auto;
}

.doc-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.doc-nav-item {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.doc-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.doc-nav-item-active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.stats-number {
    color: #1e40af;
}

.card-hover {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

/* Contenido de documentación */
.doc-content h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-content h2 {
    border-bottom: 2px solid #e2e8f0;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Responsive para documentación */
@media (max-width: 1024px) {
    .doc-sidebar {
        position: fixed;
        left: -100%;
        top: 4rem;
        z-index: 50;
        transition: left 0.3s ease;
    }
    
    .doc-sidebar.show {
        left: 0;
    }
}

/* Mobile Sidebar Animations */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .doc-nav-item,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
        min-width: 44px;
    }
    
    .doc-section-card {
        cursor: pointer;
    }
    
    .doc-section-card:active {
        transform: scale(0.95);
    }
}

/* Line clamp utility for text truncation */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Improved focus states for accessibility */
.doc-nav-item:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Mobile menu improvements */
@media (max-width: 1024px) {
    .doc-sidebar {
        position: fixed;
        left: -100%;
        top: 4rem;
        z-index: 50;
        transition: left 0.3s ease;
        height: calc(100vh - 4rem);
    }
    
    .doc-sidebar.show {
        left: 0;
    }
} 