/* Flying Cloud Tools - Shared Styles (Brand-Aligned) */

/* Import Flying Cloud Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=PT+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #2f2f2e 100%);
    min-height: 100vh;
    padding: 20px;
    font-size: 18px; /* Brand minimum */
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-family: 'Staatliches', sans-serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.header p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2em;
    opacity: 0.9;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.tool-card.active {
    background: #f8fafc;
    border: 2px solid #fde457;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000000 0%, #2f2f2e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fde457;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Staatliches', sans-serif;
}

.tool-card h3 {
    font-family: 'Staatliches', sans-serif;
    color: #000000;
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.tool-card p {
    font-family: 'Lato', sans-serif;
    color: #2f2f2e;
    font-size: 0.95em;
    line-height: 1.5;
}

.coming-soon {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fde457;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    font-family: 'Staatliches', sans-serif;
}

/* Tool Interface Pages */
.tool-interface {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.interface-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.back-btn {
    background: #2f2f2e;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 20px;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.interface-title {
    font-family: 'Staatliches', sans-serif;
    color: #000000;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Form Elements */
.input-group {
    margin-bottom: 30px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2f2f2e;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

input[type="text"], 
input[type="number"], 
select, 
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input[type="text"]:focus, 
input[type="number"]:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #fde457;
    background: white;
    box-shadow: 0 0 0 3px rgba(253, 228, 87, 0.2);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

button {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-btn {
    background: #fde457;
    color: #000000;
    box-shadow: 0 4px 14px rgba(253, 228, 87, 0.3);
}

.primary-btn:hover:not(:disabled) {
    background: #fcd02f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 228, 87, 0.4);
}

.secondary-btn {
    background: #2f2f2e;
    color: white;
    box-shadow: 0 4px 14px rgba(47, 47, 46, 0.2);
}

.secondary-btn:hover:not(:disabled) {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.danger-btn {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
}

.danger-btn:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* Results and Status Messages */
.results-section {
    margin-top: 30px;
}

.result {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid;
    font-family: 'Lato', sans-serif;
}

.result.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.result.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.result.warning {
    background: #fffbeb;
    border-color: #fde457;
    color: #78350f;
}

.result.info {
    background: #f0f9ff;
    border-color: #2f2f2e;
    color: #1e3a8a;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #fde457;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

thead {
    background: linear-gradient(135deg, #000000 0%, #2f2f2e 100%);
    color: #fde457;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-family: 'Staatliches', sans-serif;
    letter-spacing: 0.5px;
    font-size: 16px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Lato', sans-serif;
    color: #2f2f2e;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f8fafc;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.card h3 {
    font-family: 'Staatliches', sans-serif;
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.3em;
    letter-spacing: 0.5px;
}

.card p {
    font-family: 'Lato', sans-serif;
    color: #2f2f2e;
    line-height: 1.6;
}

/* Code/Technical Elements */
code, pre, .monospace {
    font-family: 'PT Mono', monospace;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #2f2f2e;
}

pre {
    padding: 15px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

.badge.primary {
    background: #fde457;
    color: #000000;
}

.badge.secondary {
    background: #2f2f2e;
    color: white;
}

.badge.success {
    background: #22c55e;
    color: white;
}

.badge.error {
    background: #ef4444;
    color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.hidden { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    .header h1 {
        font-size: 2em;
    }

    .tool-interface {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        min-width: 100%;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }
}