/**
 * CargoHub Admin CSS
 * Styles for the admin interface
 */

/* Kargo Bilgileri Başlığı */
.cargohub-tracking-header {
    margin: 10px 0 15px 0 !important;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    clear: both;
}

.cargohub-tracking-icon {
    color: #0073aa;
    margin-right: 5px;
    font-size: 16px;
    vertical-align: middle;
    margin-top: 0;
}

/* Kargo Firmaları Sayfası Layout */
.cargohub-carriers-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 20px auto;
    max-width: 1500px;
    padding: 0 20px;
}

.cargohub-carriers-form-panel {
    flex: 0 0 530px;
    max-width: 530px;
}

.cargohub-carriers-list-panel {
    flex: 0 0 530px;
    max-width: 530px;
}

.cargohub-carriers-info-panel {
    flex: 0 0 350px;
    max-width: 350px;
}

/* Geliştirici Bilgileri */
.cargohub-developer-info {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cargohub-developer-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.developer-logo {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.developer-logo-img {
    width: 200px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    padding: 3px;
    transition: all 0.5s ease;
}

.developer-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cargohub-developer-info h3 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.developer-details {
    position: relative;
    z-index: 1;
}

.developer-details p {
    margin: 8px 0;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.developer-details a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

.developer-details a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.license-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.license-info p {
    margin: 3px 0;
    font-size: 11px;
    opacity: 0.8;
    font-style: italic;
}

.license-info small {
    color: rgba(255,255,255,0.9);
}

/* Kargo Logo Stilleri */
.carrier-logo-small {
    max-width: 45px;
    max-height: 35px;
    border-radius: 6px;
    border: 2px solid #e1e5e9;
    padding: 2px;
    transition: all 0.3s ease;
    background: #fff;
}

.carrier-logo-small:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carrier-logo-placeholder {
    width: 45px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.carrier-logo-placeholder:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-indicator {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.color-indicator:hover {
    transform: scale(1.2);
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Logo Upload Section */
.logo-upload-section {
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
}

.logo-upload-section:hover {
    border-color: #0073aa;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.logo-upload-method,
.logo-url-method {
    display: block;
    margin-bottom: 15px;
}

.logo-upload-method strong,
.logo-url-method strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.logo-file-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-file-input:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.logo-file-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.upload-standards {
    margin-top: 5px;
}

.upload-info {
    font-size: 12px;
    color: #666;
    font-style: italic;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.logo-divider {
    text-align: center;
    margin: 15px 0;
    font-weight: 600;
    color: #666;
    position: relative;
}

.logo-divider::before,
.logo-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e1e5e9;
}

.logo-divider::before {
    left: 0;
}

.logo-divider::after {
    right: 0;
}

/* Mevcut Logo Gösterimi */
.current-logo {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 2px solid #e1e5e9;
}

.current-logo img {
    max-width: 150px;
    max-height: 100px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.current-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Kullanım Bilgileri */
.usage-info ul {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.usage-info li {
    margin-bottom: 8px;
}

/* Info Text Stilleri */
.info-text {
    padding: 10px 0;
    color: #646970;
    font-style: italic;
}

.info-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Card Genel Stilleri */
.cargohub-carriers-layout .card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: fit-content;
}

.cargohub-carriers-layout .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.cargohub-carriers-layout .card h2.title,
.cargohub-carriers-layout .card h3 {
    margin-top: 0;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: #1d2327;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.cargohub-carriers-layout .card h2.title::after,
.cargohub-carriers-layout .card h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #0073aa, #005a87);
    border-radius: 2px;
}

/* Form Stilleri */
.cargohub-carriers-layout .form-table {
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cargohub-carriers-layout .form-table th {
    width: 140px;
    font-size: 13px;
    font-weight: 600;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    color: #3c4043;
    border-bottom: 1px solid #e1e5e9;
}

.cargohub-carriers-layout .form-table td {
    font-size: 13px;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f1f3f4;
}

.cargohub-carriers-layout .form-table input[type="text"],
.cargohub-carriers-layout .form-table input[type="url"] {
    width: 100%;
    max-width: 380px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.cargohub-carriers-layout .form-table input[type="text"]:focus,
.cargohub-carriers-layout .form-table input[type="url"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: #fff;
    outline: none;
}

.cargohub-carriers-layout .form-table input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
    transition: all 0.3s ease;
}

.cargohub-carriers-layout .form-table input[type="color"]:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cargohub-carriers-layout .form-table .description {
    color: #6c757d;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.cargohub-carriers-layout .button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.cargohub-carriers-layout .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.cargohub-carriers-layout .button:not(.button-primary) {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
}

.cargohub-carriers-layout .button:not(.button-primary):hover {
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-1px);
}

/* Tablo Stilleri */
.cargohub-carriers-layout .wp-list-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cargohub-carriers-layout .wp-list-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 13px;
    font-weight: 600;
    padding: 15px 12px;
    vertical-align: middle;
    text-align: center;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.cargohub-carriers-layout .wp-list-table td {
    font-size: 13px;
    padding: 15px 12px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
}

/* Specific column width constraints */
.cargohub-carriers-layout .wp-list-table th:nth-child(1),
.cargohub-carriers-layout .wp-list-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

.cargohub-carriers-layout .wp-list-table th:nth-child(3),
.cargohub-carriers-layout .wp-list-table td:nth-child(3) {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
}

.cargohub-carriers-layout .wp-list-table th:nth-child(4),
.cargohub-carriers-layout .wp-list-table td:nth-child(4) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    overflow: hidden;
}

.cargohub-carriers-layout .wp-list-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.cargohub-carriers-layout .wp-list-table .button {
    margin: 1px 2px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: auto;
    white-space: nowrap;
}

.cargohub-carriers-layout .wp-list-table .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.button-link-delete {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.button-link-delete:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1550px) {
    .cargohub-carriers-layout {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        max-width: 600px;
    }
    
    .cargohub-carriers-form-panel,
    .cargohub-carriers-list-panel,
    .cargohub-carriers-info-panel {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .cargohub-carriers-form-panel {
        order: 1;
    }
    
    .cargohub-carriers-list-panel {
        order: 2;
    }
    
    .cargohub-carriers-info-panel {
        order: 3;
    }
}

@media (max-width: 768px) {
    .cargohub-carriers-layout {
        padding: 0 10px;
    }
    
    .cargohub-carriers-layout .form-table input[type="text"],
    .cargohub-carriers-layout .form-table input[type="url"] {
        max-width: 100%;
    }
    
    .cargohub-carriers-layout .form-table th,
    .cargohub-carriers-layout .form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .cargohub-carriers-layout .form-table th {
        font-weight: bold;
        border-bottom: none;
    }
}

/* General CargoHub Styles */
.cargohub-tracking-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* CargoHub FREE tracking container - Özel İzole Alan */
.cargohub-free-tracking-container {
    margin: 50px auto 30px auto !important;
    padding: 1px !important;
    clear: both !important;
    margin-top: 80px !important;
    position: relative;
    isolation: isolate;
    background: #1c96c6fc !important;
    border-radius: 5px !important;
    max-width: 96% !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08) !important;
}

/* CargoHub FREE tracking box - Gelişmiş Tasarım */
.cargohub-free-tracking-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 50%, #ffffff 100%);
    border: 6px solid transparent;
    border-radius: 5px;
    padding: 0;
    box-shadow: 
        0 6px 20px rgba(0, 115, 170, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    position: relative;
    background-clip: padding-box;
    transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.cargohub-free-tracking-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    z-index: -1;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.cargohub-free-tracking-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 115, 170, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Tracking header */
.cargohub-tracking-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 25px 16px !important;
    border-bottom: none;
    position: relative;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    clear: both !important;
}

.cargohub-tracking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cargo-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle fill="rgba(255,255,255,0.05)" cx="10" cy="10" r="2"/></pattern></defs><rect fill="url(%23cargo-pattern)" width="100" height="100"/></svg>');
    opacity: 0.3;
}

.cargohub-tracking-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}

/* Desktop margin-top for tracking title */
@media (min-width: 992px) {
    h3.cargohub-tracking-title {
        margin-top: 5px !important;
        color: white !important;
        width: 50%;
    }
}

.cargohub-tracking-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    color: white;
    position: relative;
    z-index: 1;
}

/* Tracking form */
.cargohub-tracking-form {
    padding: 25px;
}

.cargohub-form-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cargohub-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cargohub-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    min-width: 120px;
    flex-shrink: 0;
    margin: 0;
}

.cargohub-label::before {
    content: '•';
    color: #0073aa;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.cargohub-select,
.cargohub-input {
    flex: 1;
    max-width: 350px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cargohub-select:focus,
.cargohub-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
    background: #fff;
}

.cargohub-select:hover,
.cargohub-input:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cargohub-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Tracking info display */
.cargohub-tracking-info {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.cargohub-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cargohub-info-label {
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
}

.cargohub-info-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cargohub-tracking-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cargohub-tracking-link:hover {
    background: rgba(0, 115, 170, 0.1);
    text-decoration: none;
}

.cargohub-tracking-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.cargohub-no-tracking {
    color: #6b7280;
    font-style: italic;
    font-size: 13px;
}

/* Tracking footer */
.cargohub-tracking-footer {
    background: #f8f9fa;
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.cargohub-footer-note {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cargohub-footer-note::before {
    content: '💡';
    font-size: 14px;
}

/* Responsive design for tracking form */
@media (max-width: 768px) {
    .cargohub-free-tracking-container {
        margin-top: 20px !important;
    }
    
    .cargohub-tracking-header {
        padding: 15px;
    }
    
    .cargohub-tracking-title {
        font-size: 16px;
    }
    
    .cargohub-tracking-subtitle {
        font-size: 12px;
    }
    
    .cargohub-tracking-form {
        padding: 20px;
    }
    
    .cargohub-select,
    .cargohub-input {
        max-width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .cargohub-tracking-footer {
        padding: 12px 20px;
    }
    
    .cargohub-footer-note {
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
    }
}

.cargohub-tracking-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Existing Tracking Display */
.cargohub-existing-tracking {
    background: #f7f7f7;
    border-left: 4px solid #46b450;
    padding: 15px;
    margin-bottom: 15px;
}

.cargohub-existing-tracking p {
    margin: 5px 0;
}

.cargohub-existing-tracking .button {
    margin-right: 10px;
    margin-top: 10px;
}

/* Form Styles */
.cargohub-tracking-form {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 20px;
}

.cargohub-tracking-form .form-table {
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.cargohub-tracking-form .form-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 15px;
    width: 150px;
}

.cargohub-tracking-form .form-table td {
    padding: 15px;
}

.cargohub-tracking-form select,
.cargohub-tracking-form input[type="text"] {
    width: 100%;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.cargohub-tracking-form select:focus,
.cargohub-tracking-form input[type="text"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Button Styles */
.cargohub-save-tracking {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
}

.cargohub-save-tracking:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-1px);
}

.cargohub-edit-tracking {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
}

.cargohub-delete-tracking {
    background: #dc3232 !important;
    border-color: #dc3232 !important;
    color: white !important;
}

.cargohub-delete-tracking:hover {
    background: #a00 !important;
    border-color: #a00 !important;
}

.cargohub-cancel-edit {
    background: #666 !important;
    border-color: #666 !important;
    color: white !important;
}

/* Meta Box Styles */
.cargohub-metabox-content {
    padding: 10px 0;
}

.cargohub-metabox-content p {
    margin: 10px 0;
}

.cargohub-metabox-content .button {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

/* Admin Page Styles */
.cargohub-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.cargohub-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cargohub-stat-box h3 {
    margin: 0 0 5px 0;
    font-size: 32px;
    font-weight: bold;
}

.cargohub-stat-box p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Table Styles */
.wp-list-table.cargohub-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wp-list-table.cargohub-table th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 15px 10px;
}

.wp-list-table.cargohub-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

.wp-list-table.cargohub-table .button {
    margin: 2px;
}

/* Settings Page */
.cargohub-settings {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cargohub-settings h2 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cargohub-settings .form-table th {
    font-weight: 600;
    color: #555;
}

/* Loading States */
.cargohub-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.cargohub-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: cargohub-spin 1s linear infinite;
}

@keyframes cargohub-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.cargohub-message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 500;
}

.cargohub-message.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.cargohub-message.error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.cargohub-message.info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .cargohub-stats {
        flex-direction: column;
    }
    
    .cargohub-stat-box {
        margin-bottom: 15px;
    }
    
    .cargohub-tracking-form select,
    .cargohub-tracking-form input[type="text"] {
        max-width: 100%;
    }
    
    .cargohub-tracking-form .form-table th,
    .cargohub-tracking-form .form-table td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    
    .cargohub-tracking-form .form-table th {
        background: #f8f9fa;
        font-weight: 600;
        border-bottom: none;
    }
    
    .cargohub-existing-tracking .button {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    /* Logo upload section mobile optimization */
    .logo-upload-section {
        padding: 15px;
    }
    
    .logo-file-input {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Developer info mobile optimization */
    .cargohub-developer-info {
        margin-top: 15px;
        padding: 15px;
    }
    
    .developer-logo-img {
        width: 150px;
        height: 45px;
    }
    
    .developer-details a {
        display: block;
        margin: 8px 0;
        text-align: center;
    }
    
    /* Tables mobile optimization */
    .cargohub-carriers-layout .wp-list-table {
        font-size: 13px;
    }
    
    .cargohub-carriers-layout .wp-list-table th,
    .cargohub-carriers-layout .wp-list-table td {
        padding: 8px 6px;
    }
    
    .cargohub-carriers-layout .wp-list-table .button {
        font-size: 10px;
        padding: 3px 6px;
        margin: 1px;
        min-width: auto;
        width: auto;
        display: inline-block;
    }
    
    /* Mobile action buttons optimization */
    .cargohub-carriers-layout .wp-list-table td[data-label*="İşlemler"] {
        white-space: nowrap;
        overflow: hidden;
    }
    
    .cargohub-carriers-layout .wp-list-table td[data-label*="İşlemler"] .button {
        font-size: 9px;
        padding: 2px 4px;
        margin: 0 1px;
        border-radius: 2px;
    }
    
    /* Column width constraints for tablet */
    .cargohub-carriers-layout .wp-list-table th:nth-child(4),
    .cargohub-carriers-layout .wp-list-table td:nth-child(4) {
        width: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
    }
    
    /* Color indicator mobile */
    .color-indicator {
        width: 20px;
        height: 20px;
    }
    
    /* Touch-friendly buttons */
    .cargohub-carriers-layout .button {
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* Mobile Phones - Extra Small Screens */
@media (max-width: 480px) {
    .cargohub-carriers-layout {
        padding: 0 5px;
    }
    
    .cargohub-carriers-layout .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .cargohub-carriers-layout .card h2.title,
    .cargohub-carriers-layout .card h3 {
        font-size: 16px;
        text-align: left;
    }
    
    /* Form table mobile stacking */
    .cargohub-carriers-layout .form-table {
        margin-bottom: 15px;
    }
    
    .cargohub-carriers-layout .form-table th {
        padding: 8px 15px 5px;
        font-size: 12px;
        width: auto;
    }
    
    .cargohub-carriers-layout .form-table td {
        padding: 5px 15px 15px;
    }
    
    /* Developer info compact view */
    .cargohub-developer-info {
        padding: 10px;
    }
    
    .cargohub-developer-info h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .developer-details p {
        font-size: 12px;
        margin: 5px 0;
    }
    
    .developer-logo-img {
        width: 120px;
        height: 36px;
    }
    
    /* Table horizontal scroll for very small screens */
    .cargohub-carriers-layout .wp-list-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .cargohub-carriers-layout .wp-list-table thead,
    .cargohub-carriers-layout .wp-list-table tbody,
    .cargohub-carriers-layout .wp-list-table th,
    .cargohub-carriers-layout .wp-list-table td,
    .cargohub-carriers-layout .wp-list-table tr {
        display: block;
    }
    
    .cargohub-carriers-layout .wp-list-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cargohub-carriers-layout .wp-list-table tbody tr {
        border: 1px solid #ccc;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .cargohub-carriers-layout .wp-list-table td {
        border: none !important;
        position: relative;
        padding: 8px 8px 8px 35% !important;
        text-align: left !important;
        white-space: normal;
    }
    
    .cargohub-carriers-layout .wp-list-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 8px;
        top: 8px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #333;
    }
    
    /* Special handling for actions column in mobile card layout */
    .cargohub-carriers-layout .wp-list-table td[data-label*="İşlemler"] {
        padding: 8px !important;
        text-align: center !important;
        border-top: 1px solid #eee !important;
        margin-top: 5px;
    }
    
    .cargohub-carriers-layout .wp-list-table td[data-label*="İşlemler"]:before {
        display: none;
    }
    
    .cargohub-carriers-layout .wp-list-table td[data-label*="İşlemler"] .button {
        font-size: 8px;
        padding: 1px 3px;
        margin: 0 1px;
        min-width: 40px;
        border-radius: 2px;
        display: inline-block;
        white-space: nowrap;
    }
    
    .cargohub-carriers-layout .wp-list-table td[data-label*="İşlemler"] .button-link-delete {
        background: #dc3545 !important;
        color: white !important;
        border-color: #dc3545 !important;
    }
    
    /* Hide "Eklenme Tarihi" column on mobile for tracking table */
    .wp-list-table th:nth-child(5),
    .wp-list-table td:nth-child(5),
    .wp-list-table td[data-label*="Eklenme Tarihi"] {
        display: none !important;
    }
    
    /* Additional button optimization for tracking table */
    .wp-list-table .button {
        font-size: 8px !important;
        padding: 1px 3px !important;
        margin: 0 1px !important;
        min-width: 35px !important;
        border-radius: 2px !important;
    }
    
    .cargohub-tracking-actions .button {
        font-size: 8px !important;
        padding: 1px 3px !important;
        margin: 0 1px !important;
        min-width: 35px !important;
    }
    
    /* Logo upload mobile improvements */
    .upload-info {
        font-size: 11px;
        padding: 8px;
    }
    
    .usage-info ul {
        padding-left: 15px;
    }
    
    .usage-info li {
        font-size: 11px;
        margin-bottom: 3px;
    }
}

/* Animation Effects */
.cargohub-tracking-box {
    transition: all 0.3s ease;
}

.cargohub-tracking-box:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cargohub-fade-in {
    animation: cargohub-fadeIn 0.5s ease-in;
}

@keyframes cargohub-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carrier Colors */
/* Dynamic Carrier Colors - Generated from Custom Carriers */

/* Print Styles */
@media print {
    .cargohub-tracking-box {
        border: 2px solid #333 !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .cargohub-tracking-form .button {
        display: none;
    }
} 

/* Admin tracking table styles */
.cargohub-tracking-actions {
    white-space: nowrap;
}

.cargohub-tracking-actions .button {
    margin-right: 5px;
}

.cargohub-tracking-actions .button-link-delete {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    transition: all 0.3s ease;
}

.cargohub-tracking-actions .button-link-delete:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
    transform: translateY(-1px);
}

.cargohub-tracking-actions .button-link-delete:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.cargohub-tracking-actions form {
    display: inline-block;
    margin: 0;
}

/* Edit form styles */
.cargohub-edit-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.cargohub-edit-form h2 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.cargohub-edit-form .form-table th {
    width: 150px;
    font-weight: 600;
    color: #495057;
}

.cargohub-edit-form .regular-text {
    width: 100%;
    max-width: 300px;
}

.cargohub-edit-form .submit {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.cargohub-edit-form .button-primary {
    background: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

.cargohub-edit-form .button-primary:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.cargohub-edit-form .button:not(.button-primary) {
    margin-left: 10px;
} 

/* Required field styling */
.required-asterisk {
    color: #dc3232;
    font-weight: bold;
}

label.required {
    font-weight: 600;
}

select[required], input[required] {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

select[required]:focus, input[required]:focus {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

/* CargoHub specific required field styling */
.cargohub-required-field {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

.cargohub-required-field:focus {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.2) !important;
}

/* CargoHub warning message */
.cargohub-cargo-warning {
    background: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    color: #856404 !important;
    padding: 10px !important;
    padding-top: 120px !important;
    margin: 10px 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.cargohub-cargo-warning strong {
    font-weight: bold !important;
}