/**
 * AppToshCom - Minimal CSS
 * Tailwind CSS ile uyumlu
 */

/* Custom gradient background */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Logo optimizasyonu */
header img {
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Modal animasyonları */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

.modal-exit {
    animation: modalExit 0.3s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Modal içeriği */
.modal-content {
    animation: modalEnter 0.3s ease-out;
}

/* Buton hover efektleri */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition-all duration-200 transform hover:scale-105;
}

.btn-danger {
    @apply bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded-lg transition-all duration-200 transform hover:scale-105;
}

.btn-secondary {
    @apply bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded-lg transition-all duration-200 transform hover:scale-105;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Focus styles */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile optimizations */
@media (max-width: 1023px) {
    .grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
    
    /* İkon boyutlarını mobilde küçült */
    .grid-cols-4 a div {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    
    .grid-cols-4 a i {
        font-size: 1.25rem !important;
    }
    
    .grid-cols-4 a h3 {
        font-size: 0.75rem !important;
    }
}

@media (min-width: 1024px) {
    .grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.notification.error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.notification.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.notification.info {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1f2937;
}

.notification.message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

/* Dark mode notifications */
.dark .notification {
    background: #1f2937;
    color: #f9fafb;
}

.dark .notification.success {
    background: #064e3b;
}

.dark .notification.error {
    background: #7f1d1d;
}

.dark .notification.warning {
    background: #78350f;
}

.dark .notification.info {
    background: #1e3a8a;
}

.dark .notification-title {
    color: #f9fafb;
}

.dark .notification.message {
    color: #d1d5db;
}

.dark .notification-close {
    color: #9ca3af;
}

.dark .notification-close:hover {
    color: #d1d5db;
    background: #374151;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}