/**
 * ASRIC Common Styles
 * 
 * @package Allship_Registry_Identity_Card
 * @since 1.0.0
 */

/* Common Variables */
:root {
    --asric-primary: #2563eb;
    --asric-primary-hover: #1d4ed8;
    --asric-secondary: #4b5563;
    --asric-success: #10b981;
    --asric-error: #ef4444;
    --asric-warning: #f59e0b;
    --asric-info: #3b82f6;
    --asric-light-bg: #f9fafb;
    --asric-border: #e5e7eb;
    --asric-text: #374151;
    --asric-text-light: #6b7280;
    --asric-white: #ffffff;
    --asric-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --asric-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --asric-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --asric-transition: all 0.2s ease-in-out;
}

/* Reset and Base Styles */
.asric-container * {
    box-sizing: border-box;
}

.asric-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--asric-text);
    line-height: 1.6;
}

/* Common Button Styles */
.asric-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--asric-transition);
    text-decoration: none;
    outline: none;
}

.asric-btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.asric-btn-primary {
    background-color: var(--asric-primary);
    color: var(--asric-white);
}

.asric-btn-primary:hover {
    background-color: var(--asric-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--asric-shadow-md);
}

.asric-btn-secondary {
    background-color: var(--asric-secondary);
    color: var(--asric-white);
}

.asric-btn-secondary:hover {
    background-color: #374151;
}

.asric-btn-success {
    background-color: var(--asric-success);
    color: var(--asric-white);
}

.asric-btn-success:hover {
    background-color: #059669;
}

.asric-btn-danger {
    background-color: var(--asric-error);
    color: var(--asric-white);
}

.asric-btn-danger:hover {
    background-color: #dc2626;
}

.asric-btn-outline {
    background-color: transparent;
    border-color: var(--asric-border);
    color: var(--asric-text);
}

.asric-btn-outline:hover {
    background-color: var(--asric-light-bg);
}

.asric-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Common Form Styles */
.asric-form-group {
    margin-bottom: 1rem;
}

.asric-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--asric-text);
    margin-bottom: 0.25rem;
}

.asric-input,
.asric-select,
.asric-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--asric-border);
    border-radius: 0.375rem;
    background-color: var(--asric-white);
    transition: var(--asric-transition);
}

.asric-input:focus,
.asric-select:focus,
.asric-textarea:focus {
    outline: none;
    border-color: var(--asric-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.asric-input.error,
.asric-select.error,
.asric-textarea.error {
    border-color: var(--asric-error);
}

/* Common Alert Styles */
.asric-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.asric-alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.asric-alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.asric-alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.asric-alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Common Card Styles */
.asric-card {
    background-color: var(--asric-white);
    border-radius: 0.5rem;
    box-shadow: var(--asric-shadow-sm);
    border: 1px solid var(--asric-border);
    overflow: hidden;
}

.asric-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--asric-border);
    background-color: var(--asric-light-bg);
}

.asric-card-body {
    padding: 1.5rem;
}

.asric-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--asric-border);
    background-color: var(--asric-light-bg);
}

/* Common Table Styles */
.asric-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.asric-table th,
.asric-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--asric-border);
}

.asric-table th {
    background-color: var(--asric-light-bg);
    font-weight: 600;
    color: var(--asric-text);
}

.asric-table tbody tr:hover {
    background-color: var(--asric-light-bg);
}

/* Common Badge Styles */
.asric-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.asric-badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--asric-primary);
}

.asric-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--asric-success);
}

.asric-badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--asric-error);
}

.asric-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--asric-warning);
}

.asric-badge-secondary {
    background-color: rgba(75, 85, 99, 0.1);
    color: var(--asric-secondary);
}

/* Common Loading Styles */
.asric-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: asric-spin 1s linear infinite;
}

@keyframes asric-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Common Utility Classes */
.asric-text-center { text-align: center; }
.asric-text-left { text-align: left; }
.asric-text-right { text-align: right; }

.asric-font-bold { font-weight: 700; }
.asric-font-semibold { font-weight: 600; }
.asric-font-medium { font-weight: 500; }

.asric-text-sm { font-size: 0.875rem; }
.asric-text-xs { font-size: 0.75rem; }
.asric-text-lg { font-size: 1.125rem; }
.asric-text-xl { font-size: 1.25rem; }

.asric-mb-0 { margin-bottom: 0; }
.asric-mb-1 { margin-bottom: 0.25rem; }
.asric-mb-2 { margin-bottom: 0.5rem; }
.asric-mb-3 { margin-bottom: 0.75rem; }
.asric-mb-4 { margin-bottom: 1rem; }

.asric-mt-0 { margin-top: 0; }
.asric-mt-1 { margin-top: 0.25rem; }
.asric-mt-2 { margin-top: 0.5rem; }
.asric-mt-3 { margin-top: 0.75rem; }
.asric-mt-4 { margin-top: 1rem; }

.asric-hidden { display: none; }
.asric-block { display: block; }
.asric-inline-block { display: inline-block; }
.asric-flex { display: flex; }
.asric-inline-flex { display: inline-flex; }

.asric-items-center { align-items: center; }
.asric-justify-center { justify-content: center; }
.asric-justify-between { justify-content: space-between; }

.asric-w-full { width: 100%; }
.asric-h-full { height: 100%; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .asric-mobile-hidden {
        display: none;
    }
    
    .asric-mobile-full {
        width: 100%;
    }
    
    .asric-mobile-text-center {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .asric-no-print {
        display: none !important;
    }
} 